Bug 418135 - Not all QT5/QT4 based apps show the same Pop-Up Window when opening files.
Summary: Not all QT5/QT4 based apps show the same Pop-Up Window when opening files.
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.14.5
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-24 12:14 UTC by Xeno Idaltu
Modified: 2020-02-24 16:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xeno Idaltu 2020-02-24 12:14:36 UTC
I don't know how exactly it works but I've noticed that there are three different window screens can appear when opening a file from a QT based app.
I'm talking about the small window that pops out when we want to open a file from a specific program. 
On most programs, we go to the File Tab on the upper Menu Bar and then click on Open File.
There are three types of windows that will show up depending on the program currently using.

1) Best Pop-Up Window:
This window allows us to use the Show Aside Preview, View Hidden Files, and the Shortcut Paths are customizable within the window. If we Add An Entry on Dolphin, it will appear on all QT-based programs using this particular window style. Very handy.
##This window will open when using: Gwenview, KolourPaint, Kwrite, VLC, and Krita.

 2) QT5 Pop-Up Window:
This window style doesn't allow us to use Show Aside Preview, show hidden files, and we can't change the Shortcut Paths. I don't know exactly how this window decided to use some of my manually made directories as shortcut paths. 
##This window will open when using: Kvantum, Kid3, LMMS 1.2

3) QT4 Pop-Up Window:
This window behaves exactly the same as the previous one only that this is for QT4 based apps.
##This window will open when using: PuddleTag, LMMS 1.1

############UPDATE#############
After browsing around i found out that I can edit path entries for QT5 Pop-Up windows by editing file QtProject.conf
/home/USER/.config/QtProject.conf
This will only work for QT5 apps but not for QT4 apps. I've looked around and I don't see any file. I looked inside PuddleTag and nothing.

Also, this problem happens in Kubuntu 18.04 and Debian 10. On OpenSuse, Puddletag uses what I call Best Pop-Up Window. I don't know if OpenSuse developers fixed this issue or if this something that was never truly fixed on Debian/Ubuntu.



Linux/KDE Plasma: Debian-10 Stable & Kubuntu 18.04 LTS
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3
Comment 1 David Edmundson 2020-02-24 12:21:17 UTC
We can't control from a desktop what other apps do internally

The most we provide is a "platform integration" plugin, that Qt5 apps load. This will adjust the open dialog to use the "best" one. Apps can disable it and apps loaded through snaps/flatpak/appimage may not be able to use it depending on how it is packaged.
Comment 2 Xeno Idaltu 2020-02-24 14:53:34 UTC
(In reply to David Edmundson from comment #1)
> We can't control from a desktop what other apps do internally
> 
> The most we provide is a "platform integration" plugin, that Qt5 apps load.
> This will adjust the open dialog to use the "best" one. Apps can disable it
> and apps loaded through snaps/flatpak/appimage may not be able to use it
> depending on how it is packaged.

It looks like the "pop-up window" I am referring to is called KDialog. Is there a way to make a QT4 application use KDialog instead of the Basic QT4-OpenFile Dialog?

PuddleTag, a QT4 App, ceased maintenance on 2016 yet OpenSuse-KDE makes PuddleTag use KDialog instead. 

I need this feature because I have files on an external drive and when using QT4 apps I have to click all the way to my desired path. Sometimes 10 clicks per file and doing it on a regular basis is time consuming and inefficient.
Comment 3 David Edmundson 2020-02-24 16:00:40 UTC
>Is there a way to make a QT4 application use KDialog instead of the Basic QT4-OpenFile Dialog?

Not without changing the code of that application