Home > Back-end >  Problems setting up the QSS imitate qtcreator properties window
Problems setting up the QSS imitate qtcreator properties window

Time:03-20

Learning qt is not long time, impressed qtcreator interface editing in the properties window, feeling color configuration is very good-looking, so try to write their own programs to achieve this effect, see below:

Main interface QTreeWidget space left for the middle to VTK window, qtpropertybrowser control is on the right and one on the right side of the window are properly set and qtcreator is consistent, and on the left side of the window is only the background color is set up, and do not implement the item line by line the effect of alternating colors, such as alternate in QSS file - background color Settings,
QSS file Settings are as follows:
 
QTreeWidget {
Background - color: # FFFFBB;
Alternate background - color: # FFFFDD
}

QTreeWidget: : item {
Background: # FFFFBB;
}
QTreeView: : item: hover {
Background: # FFFFBB;
}

QTreeView: : item: selected: active {
Background: # 5599 ff;
}

Item: selected: QTreeView...! The active {
Background: # 5599 ff;
}

, every brother please advice on how to set up to achieve the effect of a uniform and on the right side, and I don't want to achieve with the right color how to configure this setup QSS file,
  • Related