Hey
Got a follow up question in regards to styling...
How can I get QComboBox focus indicator/rect ? So that I can set correct color for the outline of comboBox to paint?
I tried using
QRect r = QApplication::style()->subElementRect(QStyle::SE_ComboBoxLayoutItem, &option, mWidgetList[ComboBox]);and
QRect r = QApplication::style()->subElementRect(QStyle::SE_ComboBoxFocusRect, &option, mWidgetList[ComboBox]);But neither return correct rect to use as paint target... Only the large square one around item in tree view.
Any hints?
Same for QPushButton, and pretty much any button/combo like widget I think o.O
TIA.