still more playing

This commit is contained in:
Marcel Otte 2015-03-22 22:32:18 +01:00
parent 0ea4430252
commit ffaca3ab13
2 changed files with 7 additions and 2 deletions

View File

@ -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}");
}

View File

@ -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);