Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make QTextEdit with no visible border?

Tags:

styles

qt

qt3

When I create a deafult QTextEdit widget, it appears in a default Windows style border. I don't want this border, so I try to turn it off. How do I do that?

I'm using pretty old version of Qt (3.2.3).

like image 388
akalenuk Avatar asked May 08 '13 08:05

akalenuk


1 Answers

If i understand the question correctly, you can set the frame style to no frame using the setFrameStyle() function.

Heres an example:

QTextEdit *text_edit = new QTextEdit(this);
text_edit->setFrameStyle(QFrame::NoFrame);
like image 156
thuga Avatar answered Oct 19 '22 03:10

thuga