Qt 6.11 is out! See what's new in the release
blog
Set Border for QtextEdit
General and Desktop
4
Posts
3
Posters
11.6k
Views
1
Watching
-
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