Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
dev:layout_code [2009/06/27 22:10] michael |
dev:layout_code [2009/06/27 22:15] michael |
===== A dialog box IS a QWidget ===== | ===== A dialog box IS a QWidget ===== |
| |
It is true that in order to add a layout in Qt 4 you have to have a QWidget, but if you have a QDialog, you **have** a QWidget. You do **not** need to create a new QWidget inside the dialog and add a layout to that. | It is true that in order to add a layout in Qt 4 you have to have a QWidget, but if you have a QDialog (for example), you **have** a QWidget. You do **not** need to create a new QWidget inside the dialog and add a layout to that. |
| |
We have a lot of old legacy code like: | We have a lot of old legacy code like: |