[PyQt] layout management serious problem

think_resist at hushmail.com think_resist at hushmail.com
Fri Oct 12 13:36:57 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi all,

I'm completely confused on a simple thing (from what I read):
layout management

I've written a pyqt hui app that has a Mainwindow, a centralwidget
and 15 widgets (textedit, linedit, pushbuttun) that belong to the
centralwidget. I've written their size, heigh , position and
everythig worked so far. When I got the program to run on a system
with different resolution, it was...10 times bigger (and 1000
uglier)! So I've realized i have to use a layout manager...I've
read many texts in the web but i don't get the logic behind this
thing. Can't i just create the mainwindow, the size i want, then
create the central widget, create a layout manager, put the central
widget on it and then start adding widgets on the central widget,
or this is no tgoing to work? Do I have to write down how each
widget will grow or shrink? Very confused, will appreciate any help
very much
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Charset: UTF8
Version: Hush 2.5

wpwEAQECAAYFAkcPamgACgkQMthlogX/iJSjMAP/RVE0stAPaAO+VTIiu7B1UmUAJouE
Sy2TLhtHVaS/EtREF8HYJwCL8aYJBtv+9zerSjPkKV1P1YopzJs2oXG5D02rcTJSaGDl
tw3fNYroOYgVw/+l0BArniLYA53uBSptrWJcU33fcvUn6tVH4grSAWw4rpa3PhnWrq7x
e7hATTc=
=WqVc
-----END PGP SIGNATURE-----




More information about the PyQt mailing list