Michael Clerx
Michael Clerx

Reputation: 3056

PyQt5 on gnome has strange file dialogs

I'm trying to switch from qt4 to qt5, but one of the issues I'm seeing is that the open/save file dialogs have gotten really ugly! Files and folders no longer have icons, the shortcuts in the sidebar are displayed incorrectly etc.

Does anybody know why this is and how I can restore it?

Thanks, Michael

Update:

I don't specify which dialogs to use, so I guess I get whatever the default is. This is an open file dialog in PyQt4:

An open file dialog in PyQt4

And PyQt5:

enter image description here

The system is Fedora 24, with Gnome 3.20.2

Upvotes: 1

Views: 493

Answers (1)

Kevin Krammer
Kevin Krammer

Reputation: 5207

The Qt4 one looks like the standard GTK+ file dialog while the second one looks like the built-in Qt fallback.

One possible reason for the latter happenning with identical code on your side is that your Qt5 installation is missing the GTK+ platform theme plugin or that this plugin cannot be loaded for some reason.

Upvotes: 3

Related Questions