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

Oliver Demetz forenbeitraege at oliverdemetz.de
Mon Jun 8 15:00:37 CEST 2009


Bah, my mistake. I had a stylesheet property on its min-width set.

But still the QHBoxLayout issue stays open:
If there are a QPushButton and a QLineEdit sideby side in the same 
layout, the lineedit's height is slightly smaller.

Any ideas?

Regards,
Oliver


Oliver Demetz schrieb:
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list