[Interest] QFileDialog: what's wrong with this minimal example

Samuel Rødal samuel.rodal at digia.com
Wed Jan 23 09:44:49 CET 2013


On 01/21/2013 07:33 PM, Wilhelm wrote:
> Hi all,
>
> if I compile this stripped down minimal example
> -------------
> #include <QApplication>
> #include <QFileDialog>
>
> int main(int argc, char *argv[])
> {
>       QApplication a(argc, argv);
>       QFileDialog fd(0, "Load from file",
>                      QDir::currentPath(),
>                      "All Files (*)");
>
>       //    return a.exec();
> }
> ---------------
>
> I get the following run-time error:
>
> QObject: Cannot create children for a parent that is in a different thread.
> (Parent is QFileSystemWatcher(0x1770be0), parent's thread is
> QThread(0x1734420), current thread is QFileInfoGatherer(0x1791c58)

Could you report this in the bug tracker?

--
Samuel




More information about the Interest mailing list