I am writing a program in QT that uses an SQLite database. I ran the software and was presented with a "file open" dialog for no apparent reason, and I had no idea what I was being asked.
The title bar is very clear on what is desired, but, there is some interaction between Gnome 3 and Qt that caused this to not display. This is the code used to display the dialog:
path = QFileDialog::getExistingDirectory(this, "Select DB Path", path);
path = QFileDialog::getExistingDirectory(nullptr, "Select DB Path", path);
I usually prefer to set a parent, but, while using Gnome 3 (at least on Fedora), it prevents the title bar from being displayed. This annoys me a great deal, and I am pretty sure that I have Gnome 3 to thank.
Note that my first attempt at fixing this was to add the QFileDialog::DontUseNativeDialog option to the dialog, but sadly, this accomplished nothing.