Hi!
If NewForm is a descendant of QDialog and this refers to a Widget this should work as it is!
For a normal window you need to set the parent, and the windowFlags to Window if you still want a resizable window frame..
#include <QtCore>
#include <QtGui>
int main(int argc, char *argv[])
{
a.show();
b.setWindowFlags(Qt::Window);
b.show();
d.exec();
return app.exec();
}
#include <QtCore>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWidget a;
a.show();
QWidget b(&a);
b.setWindowFlags(Qt::Window);
b.show();
QDialog d(&a);
d.exec();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
The above code produces 3 windows with only one taskbar entry..
Joh
Bookmarks