Using a palette to set the color of a labels text in QtDesigner
-
In QtDesigner, I have a label. In the property editor, I clicked on "change palette" next to the "palette" property. Then I changed the "Text" active color to green. When I close the dialog, the text is still black. What am I missing here? I know you can also use css to color the text, but I'd like to do it via a palette if possible.
Any suggestions?
Thanks,
David
-
Here is a screenshot. I have set this color, then closed the dialog and opened it again (so it has already been "applied"):
-
How do I change styles in Designer?
It is worth noting that other widgets (like a LineEdit) do change text color correctly using the same approach.
Also, I find it strange that there is no Label in the collection of widgets in the "Preview" section of the Edit Palette, but there is almost every other standard widget?
Thanks,
David
-
Nope, with all styles the text is still black. Does it work for you?
-
Andre - so what should I do? haha
Do you think this is an actual bug that I should report?
-
Designer didn't seem to be an option to report bugs, so I posted it under Creator: https://bugreports.qt-project.org/browse/QTCREATORBUG-7638
-
Oh, no, maybe it is a Qt thing, since it doesn't show up correctly at run time either. I guess I was assuming it was just not getting set properly. It didn't look like I could list the bug in two categories - maybe I'll leave it here for a few days and move it if it doesn't get any attention?
-
Interesting... that did work. What is the difference between Text and WindowText?
Also, is there a reason that almost every basic widget is represented in the Edit Palette -> Preview Window except QLabel?