I want to add buttons into a text on pyqt4. But I don't find any solution or an example codes.
Asked
Active
Viewed 469 times
0
-
1please properly explain your question, this is not enough to understand your problem. – qurban Dec 12 '13 at 20:08
-
Why not add text to buttons? :D – Aleksandar Feb 26 '14 at 11:40
1 Answers
0
There is no way to do this, because Qt's rich-text only supports a limited subset of html, which does not include buttons.
Probably the best compromise is to use links within the text, and connect to the label's linkActivated signal. This signal sends the url of the link, so if each link is given a href "name", it will allow you to identify which one was clicked.

ekhumoro
- 115,249
- 20
- 229
- 336