Quote Originally Posted by wagmare View Post
simple way is to use tags

QLabel *label;
label->setText("<i><font color=blue>Ok</font></i>");

i think we cant control font color through styleSheet ..
I can change an individual item easily that way. What I want to do is change all h1 elements in all QLabels throughout my program. HTML can do this with CSS stylesheets. Since the Qt stylesheets are based on CSS, I thought this might be possible with Qt as well.

From the documentation, I cannot tell if what I want is unsupported or if I am just doing it the wrong way. If anyone knows how to change the style for an h1 (or other HTML) element, please let me know.

Thanks,
Bill.