Den 07-05-2012 15:09, qtnext skrev: > Hi, > > I have started a new desktop application trying to use only qml with > Qt5 : I need to choose file. There is now no ready to use components to > open, choose a file, so I have tryed to add widgets module in the pro > file, and use Qfiledialog ... I can open QFileDialog, but when I close > the dialog box, the function in my apps corresponding to the after is > executed just after, but it close the apps just after ... my > application is derived from qapplication ... Is it forbidden to mix a > qquickview and real qwidget dialog box or is it a bug ?
Try this in your main(): QApplication app; // Your derived class here, of course app.setQuitOnLastWindowClosed(false); Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest