[Interest] Re : Re : QLineEdit "stretch" in QHBoxLayout using designer
Nikos Giotis
giotis.nikos at gmail.com
Sat Feb 18 16:27:51 CET 2012
>3. Select both and then select Form -> Lay Out Horizontally from the
>main menu of Designer
This creates a layout with your two widgets as its children. This layout
you have just created has not been set as the layout of your QMainWindow
subclass.
The solution is real easy, just select your centralWidget (by clicking on
empty space or from the object explorer tree to the right side) and then
click 'Layout in a Grid' or whatever layout suits your needs.This will
create and set a layout for the centralWidget with your existing horizontal
layout as its child.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120218/724dec0b/attachment.html>
More information about the Interest
mailing list