PDA

View Full Version : how to create a popup dialog



Morea
19th November 2006, 16:35
I've never done this, except for standard simple messageboxes, but Iwould like to design a dialog with the designer, and then I have an object of the class Town, in my main program that should show this dialog and wait for the user to click stuff in the window.
The dialog should be able to communicate with the object that called it. Most of the time only simple data will be sent back to the Town object, but there might be times when there will be some integers sent back and forth.

So I guess I start the designer and select a "Dialog with Buttons Bottom" (is that the kind of bottom you get from programming to much? :D ). Then what I do with the .ui-file?

jacek
19th November 2006, 16:40
Then what I do with the .ui-file?
You create a class that uses it: http://doc.trolltech.com/4.2/designer-using-a-component.html