still more playing
This commit is contained in:
parent
0ea4430252
commit
ffaca3ab13
|
@ -15,6 +15,7 @@ EditorElement::EditorElement(QWidget *parent) : QWidget(parent)
|
|||
label->setText("test");
|
||||
hint->setText("another test");
|
||||
edit->setText("content test");
|
||||
this->setStyleSheet("QWidget {border: 2px dashed red}");
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -13,9 +13,13 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
centralLayout->addWidget(new EditorElement(this));
|
||||
this->setCentralWidget(editor);
|
||||
QString style = QString(
|
||||
"QWidget {border: 2px dashed black;"
|
||||
"QWidget {"
|
||||
"border-radius: 5px;"
|
||||
"background: gray }"
|
||||
"background: white }"
|
||||
"QLabel {border: 2px dashed black; background: gray; "
|
||||
"border-radius: 5px;}"
|
||||
"QLineEdit {border: 2px dashed black;background: dark-gray;"
|
||||
"border-radius: 5px;}"
|
||||
);
|
||||
editor->setStyleSheet(style);
|
||||
|
||||
|
|
Reference in New Issue