I'm using Qt 5.7 and the issue of programs not using the GTK theme isn't just with my application, but also with Qt Creator. It could be, as you suggest, that XnView MP and qBittorrent work because they were built with an earlier version of Qt (XnView MP uses 5.4).
If I run the below line on Linux the only styles it displays are Fusion and Windows, so, as you say, it looks like I don't have the GTK style.
QMessageBox::information(this, "Styles", QStyleFactory::keys().join(" "), QMessageBox::Ok);
To copy to clipboard, switch view to plain text mode
However, according to this Qt blog post, the other styles have been deprecated and are no longer being developed, so using them probably isn't a good idea. Furthermore, the linked page for downloading older styles shows an empty directory, so it looks like the older styles aren't even available for download any more.
As things stand the linux version of the application look terrible, so I'd like to get them working with the GTK theme, but I still don't have a clue how to achieve this.
Any suggestions?
Bookmarks