Caveat about QFileDialog
Kevin Kofler
kevin.kofler at chello.at
Wed Nov 16 17:39:57 UTC 2011
Hi,
In this recent discussion:
http://mail.kde.org/pipermail/kde-frameworks-devel/2011-November/000026.html
it was decided to use QFileDialog instead of KFileDialog, because:
> QFileDialog now uses the platform dialog, including the KDE one
This was executed with commits such as:
http://commits.kde.org/kdelibs/017799ceb0c8a05d2bd3ce7d3c259529d68c6217
But the problem is: At least in Qt 4.8 (I haven't checked Qt 5 yet because
browsing its submodules in the Gitorious interface doesn't work properly),
only the STATIC API of QFileDialog supports platform dialogs. If you construct
a QFileDialog OBJECT as the above commit does, you always get the ugly Qt-only
dialog! So it's a very bad idea to do that.
Kevin Kofler
More information about the Kde-frameworks-devel
mailing list