Skip to content

Instantly share code, notes, and snippets.

@Ono-Sendai
Created August 18, 2016 16:47
Show Gist options
  • Save Ono-Sendai/8d8bb27d8bec4b4f8a48dd394b53028e to your computer and use it in GitHub Desktop.
Save Ono-Sendai/8d8bb27d8bec4b4f8a48dd394b53028e to your computer and use it in GitHub Desktop.
GroupHeader {
background-color: rgb(38, 38, 200);
}
----------------------------------
GroupHeader::GroupHeader(QWidget* parent, const QString& name)
: QWidget(parent)
{
setupUi(this);
this->checkBox->setText(name);
this->checkBox->setChecked(true);
//this->setObjectName("GroupHeader");
this->setProperty("class", "GroupHeader");
conPrint(this->metaObject()->className()); // Prints "GroupHeader"
}
-------------------------------------
GroupHeader* image_settings = new GroupHeader(this->renderSettingsScrollAreaWidgetContents, "Image Settings");
((QVBoxLayout*)this->imagingScrollAreaWidgetContents->layout())->insertWidget(0, image_settings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment