Questions tagged [qtstylesheets]

For questions relating to Qt Style Sheets, which allow declarative customization of Qt objects.

Qt Style Sheets enable customization of the appearance of widgets, in addition to what is possible by subclassing QStyle. The concepts, terminology, and syntax of Qt Style Sheets are heavily inspired by HTML Cascading Style Sheets (CSS) but adapted to the world of widgets, and supporting features considered as valid for the CSS 2.1 specification only.

769 questions
-1
votes
1 answer

How create own qt widget which use qss

I'm trying to use qss for my own widget. And change style when new style sheet has been loaded. I don't understand how can I fetch colors from current style sheet. And when to update it. To fetch colors im trying use…
backdround
  • 11
  • 3
-1
votes
1 answer

QTreeView setStyleSheet has no effect

I want to set background color of a selected inactive item in a QTreeView using style sheet as follows: MyTreeView->setStyleSheet("QTreeView::item:selected:!active { background-color: rgb(150, 180, 220) }"); But the code has no effect in the tree…
Yarram
  • 115
  • 1
  • 11
-1
votes
1 answer

Can I style the top-level form in Designer preview?

In Qt Designer, I've set a default print/preview stylesheet in the Preferences, to match the stylesheet of the application that will contain my UIs. When previewing, all of the contained widgets are styled correctly, but my top-level form isn't. …
Toby Speight
  • 27,591
  • 48
  • 66
  • 103
-1
votes
1 answer

How change shape of Tabs to looks like Google Chrome

How can I change the shape of my tabs inside my QTabWidget to looks like google chrome using border-image ?
Lucas S.
  • 312
  • 3
  • 15
1 2 3
51
52