PDA

View Full Version : How to make widget grow outside of its parent widget



shakeandbake
9th January 2010, 02:19
Hello!
Let's say I have a QLineEdit widget inside a QDialog and this QLineEdit widget grows when you type something in it (it grows so you can always see all the text in the QLineEdit).
Is there a way to allow that QLineEdit widget to grow outside of the QDialog it's in without making the QDialog (its parent) bigger?

Thanks!

Tanuki-no Torigava
9th January 2010, 09:03
No if QLineEdit is a part of QDialog layout.

wysota
9th January 2010, 09:52
Hello!
Let's say I have a QLineEdit widget inside a QDialog and this QLineEdit widget grows when you type something in it (it grows so you can always see all the text in the QLineEdit).
Is there a way to allow that QLineEdit widget to grow outside of the QDialog it's in without making the QDialog (its parent) bigger?


Hmm... what purpose would it serve?