[Qt-interest] setGeometry on QLineEdit -> wrong result

Oliver Demetz forenbeitraege at oliverdemetz.de
Mon Jun 8 14:04:09 CEST 2009


Hi!

I am doint the layout of my interface completely by hand.

I overwrote the resizeEvent of my widget containing the gui and call 
setGeometry of all child widget there.
Now I added a QLine edit, and it leads to other widths than I specified, 
eg calling setGeometry(x,y,150,40) leads to a displayed width of 209.

Can anyone help?

I also saw a similar behaviour when using a QHBoxLayout, where the 
LineEdit did have s slightly smaller height than its neighboring 
QPushButtons.

Regards,
Oliver



More information about the Qt-interest-old mailing list