QFileDialog Use native dialog despite of Q_OBJECT
Unsolved
General and Desktop
-
Hello together,
I have a problem with QFileDialog.
For some reasons, I don't want to use the Qt user dialog anymore. I want to use the native (Windows) dialog.
The documentation says, that the native dialog is default:
In my case I don't call the option DontUseNativeDialog, but I use the Q_OBJECT macro in the class of FileOpenSaveDialog.
I treid to set the option DontUseNativeDialog to false, but it did not help.
Where is my mistake?!
How is it possible to use native dialog when using Q_OBJECT?Thank you in advance!
-
Simply don't subclass fro QFileDialog - from what you're showing it's not needed.
-
I don't see where you call a custom FileOpenSaveDialog function here.
And btw: toAscii() is absolutely wrong