setting QLineEdit text bold
Solved
General and Desktop
-
I have a sentence to be displayed in QLineedit....In that i need to make some of the words in bold ....Any help is appreciated..........
-
I recommend you use a textEdit field. It has a few options on how to make certain words diffent colors. You would just want to limit it to one line.
-
@vinothrajendran4
Here is one example . -
-
-
hi
LineEdit do not support html as textEdit does so I dont think you can color just one word
in any easy way. -
@mrjj : Thanks
-
@vinothrajendran4
that said, i did find some code on the new that uses a trick.
please see this sample
https://www.dropbox.com/s/m6slequi83tbqg2/linedit.zip?dl=0
1/8