PDA

View Full Version : Combining two Dialog Windows



cecchinoSMI
7th March 2014, 11:47
Hi to all,
how you can read from the title I'm trying to combine actions between two dialog windows. In particular I have this kind of DialogWindow (Connection_Database.ui):
10115

How you can see from the imagine above, there are the two botton "Edit". With these two bottons I want to edit the corresponding label that are in their left side. So by pushing on "Edit" is possible to open this other dialog window (edit.ui):
10116
In the lineEdit of the dialog window of the imagine above you can write the new text.

So How I can design this kind of operation?

anda_skoa
7th March 2014, 14:32
You can handle the second dialog just like you handle the first one from whereever you show the first one.

Handle the button click, e.g. in a slot of the first dialog, and there you either create an instance of the second dialog and execute or show it, depending on whether it should be modal or not.

Cheers,
_