Hi there guys,
do you know if exist a website or any type of resource of nice text to input in the setStyleSheet method?
IIt would be nice something like: preview-image-of-the-widget ---------> code
I hope it exists!
Cheers!
Hi there guys,
do you know if exist a website or any type of resource of nice text to input in the setStyleSheet method?
IIt would be nice something like: preview-image-of-the-widget ---------> code
I hope it exists!
Cheers!
Could you elaborate what you mean? What is "preview-image-of-the-widget"?
Sure!
I mean something like: (A) --> (B)
where (A) is the image of the widget:
________________
|_my___button____|
and (B) is the code necessary to obtain that result:
for instance:
Qt Code:
mywidget->setStyleSheet("color: blue;" "background-color: yellow;" "selection-color: yellow;" "selection-background-color: blue;");To copy to clipboard, switch view to plain text mode
If no site of this type exists, it would be nice to know at least the exact styles of the Qt widgets. I haven't found this information in the wiki
There are a lot of CSS examples in the Web.
Style Sheets ReferenceIf no site of this type exists, it would be nice to know at least the exact styles of the Qt widgets. I haven't found this information in the wiki
Qt doesn't use stylesheets to draw its controls, so you won't see such definition.
It uses QStyle API that may perform direct painting calls or delegate drawing to the system.
I don't understand your question. If you are asking whether you can precisely mimic the default look using stylesheets then no, you can't.is there any change to get the information from which I can create a correspondent stylesheet?
Ok I understand. Thank you very much for all your explanations!
Bookmarks