Set Border for QtextEdit
-
How can i set border for QTextEdit
-
QTextEdit is derived from QFrame.
So look at the "docu of QFrame":http://qt-project.org/doc/qt-4.8/qframe.html :-) -
Use stylesheets...
Example Stylesheet:
@
QTextEdit {
border: 1px solid black;
}
@or
@
#ObjectName {
border: 1px solid black;
}
@or
@
QString styleSheetString = "#QTextEdit { border: 1px solid black; }";
ui->text_edit_object->setStyleSheet(styleSheetString);
@there are many ways to do it....or you could use QPalette
-
Thank you for your reply i will try