Re: [Interest] Qt5 qml only and qfiledialog, qfontdialog, ... crash

2012-05-09 Thread Stephen Kelly
On Monday, May 07, 2012 15:09:33 qtnext wrote: > 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 Qfiledia

Re: [Interest] Qt5 qml only and qfiledialog, qfontdialog, ... crash

2012-05-08 Thread Alex Malyushytskyy
setQuitOnLastWindowClosed(true) only sets flag which is checked when any QWidget closed and closes application when you need the last one. So, since I assume you do not have QWIdget instances anymore, you need manually call exit when you need to exit:. voidQCoreApplicationexit ( int returnCod

Re: [Interest] Qt5 qml only and qfiledialog, qfontdialog, ... crash

2012-05-08 Thread qtnext
it works but ... if i do that, when I close the qml view it no more quit the application and stay as zombie ... I have tryed various hack like : QGuiApplication::setQuitOnLastWindowClosed(true); at start just before opening QfileDialog I set QGuiApplication::setQuitOnLastWindowClosed(false)

Re: [Interest] Qt5 qml only and qfiledialog, qfontdialog, ... crash

2012-05-08 Thread Bo Thorsen
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 ca

[Interest] Qt5 qml only and qfiledialog, qfontdialog, ... crash

2012-05-07 Thread qtnext
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 di