Hello,
I have a QGroupBox with two QComboBoxes and three QPushButtons.
If no selection is made in either one of the checkboxes I want the border of the groupbox to be red. So I used stylesheets.
But not knowing the default stylesheet of the QGroupBox I can not get it the same size / margins / padding.
Has anyone an idea how to get the correct stylesheet code?
Qt Code:
m_groupBox->setStyleSheet(QString::fromUtf8("QGroupBox { border: 1px solid red; border-radius: 5px; margin-top: 7px; margin-bottom: 7px; padding: 0px} QGroupBox::title {top:-7 ex;left: 10px; subcontrol-origin: border}"));To copy to clipboard, switch view to plain text mode
Regards,
Marcel
Bookmarks