Qt designer - how to create QDialog?

6.1k Views Asked by At

It is possibility to create QDialog in Qt-creator like for example QForm (by clicking)? I've found several samples, but QDialog is created programmatically. I want to drag and drop buttons, listview and others components on QDialog. Now I can add new components only by modifying code.

Thanks

2

There are 2 best solutions below

0
On

The menu item File|New... gives you a choice of various dialog box types, in the templates\forms tab. (Qt version 4.7.0.)

1
On

Select File/New ...; then from Files and Classes, pick Qt, and select Qt Designer Form Class from the right-hand-side panel. Choose ... then takes you to another page where you can select a Dialog.