PDA

View Full Version : QTextEdit - Scrollbar cuts border bug



Nyte
17th June 2013, 17:47
http://i.imgur.com/QfCBJNY.png

I came across this issue with a project. The border around an QTextEdit or QPlainTextEdit gets cut when a scrollbar appears.
At first i thought it was faulty QSS, but later i googled that this was an (unresolved) bug

https://bugreports.qt.nokia.com/browse/QTBUG-20672

Is there any way around this bug/issue?

Nyte
26th June 2013, 17:05
*bump*

no work arounds?

Gokulnathvc
23rd July 2013, 15:28
QString styleSheetString = "#QTextEdit { border: 1px solid black; }";
ui->text_edit_object->setStyleSheet(styleSheetString);

Just try this to set border.

Nyte
24th September 2014, 15:41
QString styleSheetString = "#QTextEdit { border: 1px solid black; }";
ui->text_edit_object->setStyleSheet(styleSheetString);

Just try this to set border.

You just stated how to put a border around a textwidget. In my image i already did this.
The border just breaks when a scrollbar is enabled.