Hallo QT-Experten,
ich hab ein QWidget erstellt und rufe per Button ein QDialog auf.
Das aufrufen funktioniert auch, nur ist das kein Dialog wie ich ihn erwarten wuerde...
Ich möchte gerne dass, wenn ich den Dialog aufrufe nur der DIalog anklickbar ist und das Hauptframe nicht mehr anwaehlbar(solange der Dialog geöffnet ist)
Gibt es dafuer eine Propertie ?
Danke und Gruss
Aenni
qt4 und vs2008
[gelöst] qt4 und DialogFrame
[gelöst] qt4 und DialogFrame
Zuletzt geändert von Aenni am 17. Juli 2010 10:41, insgesamt 1-mal geändert.
Das macht der Dialog gratis, wenn du
1. das "Hauptframe" als parent übergibst und
2. siehe http://doc.qt.nokia.com/4.6/qdialog.html#exec
hth..
1. das "Hauptframe" als parent übergibst und
2. siehe http://doc.qt.nokia.com/4.6/qdialog.html#exec
Code: Alles auswählen
...... im Hauptframe
MyDialog dialog(this);
dialog.exec();
// Resultate abfragen
....