I made a frameless widget which has its own titlebar. When this widget has a parent widget, it doesn't act as a separate window anymore, but I want to have it popup as a dialog. Unfortunately I can't minimize, maximize it. It stays inside the parent widget frame. How can I make this frameless widget still act as an independent window or dialog when it has a parent widget?
The code looks something like this:
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QMainWindow mainWin;
mainWin.show();
FramelessWidget myWid(&mainWin, Qt:ialog | Qt::FramelessWindowHint);
myWid.show();
return app.exec();
}
Anyone has any ideas?




ialog | Qt::FramelessWindowHint);
Reply With Quote
Bookmarks