I've a source code snippet of a program written with Qt in C++, running under Linux, that creates a QFileDialog for opening an existing file. If I execute this, everything seems to work alright but when the dialog was created I got a warning saying "Gtk-Message: GtkDialog mapped without a transient parent".
In another thread I figured out that calling this function "gtk_window_set_transient_for()" fixes this error. But this function is part of the GTK library but I use the Qt framework. So are there any solutions to fix this error?
Parent of this dialog is a QMainWindow:
QString filename = QFileDialog::getOpenFileName(this, "Open File");