You are not logged in.

#1 2022-03-12 06:08:21

ArchM
Member
Registered: 2018-02-09
Posts: 24

[SOLVED] QT5 file selector (QFileDialog?) won't sort columns

Problem:
https://i.imgur.com/BhDT4Lo.gif

Solution:

arojas wrote:

Removing the 'treeViewHeader' entry from .config/QtProject.conf fixes this.

Original post:

My QT5 apps such as VLC and KeePassXC won't let me sort files in the file selector by their respective columns, file size, name or modified date. I'm able to do this in QT6 apps such as QBittorent.

I'm not using a desktop environment, just i3 with picom as my compositor. I have some basic "themeing" set up in .config/gtk-3.0/settings.ini which I tried deleting with no avail. I also tried deleting ~/.config/gtk-2.0/gtkfilechooser.ini.

Unfortunately I don't remember when I first noticed this problem but I can't imagine it's a QT5 bug, but I'm not sure how to go about identifying the problem at this point.

Last edited by ArchM (2022-03-17 23:38:04)

Offline

#2 2022-03-16 14:50:45

piperfw
Member
Registered: 2021-01-08
Posts: 30

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

I have also noticed this functionality breaking at some point in the last week. qt5-base was recently upgraded from 5.15.3+kde+r133-1 to 5.15.3+kde+r134-1 on my system, as well as most 'k...' packages from 5.91.0-1 to 5.92.0-1. I expect one of these (kwindowsystem?) broke the default QT file dialogue - if you were minded you could try rolling back these packages until you find the issue, and then submit a bug report on https://bugs.kde.org/, although I would not hold your breath - I submitted one several months ago about not being able to resize the columns in the file dialogue and no action is yet to be taken on it.

Offline

#3 2022-03-16 20:11:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

Works fine here on KDE, but KDE actually replaces the standard Qt5 dialog with their own implementation afaik. Does the literal sorting not work or do you maybe just not see the "arrow" indicator? Which might point to a theme issue. Can you post a screenshot?

Last edited by V1del (2022-03-16 20:12:23)

Offline

#4 2022-03-16 23:31:30

ArchM
Member
Registered: 2018-02-09
Posts: 24

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

V1del wrote:

Works fine here on KDE, but KDE actually replaces the standard Qt5 dialog with their own implementation afaik. Does the literal sorting not work or do you maybe just not see the "arrow" indicator? Which might point to a theme issue. Can you post a screenshot?

I recorded a gif attached below. As you can see the UI is responsive to right clicks, file selection, etc. but the columns themselves do not respond to left clicks for sorting.
https://i.imgur.com/BhDT4Lo.gif


Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2022-03-17 15:41:15)

Offline

#5 2022-03-16 23:43:41

ArchM
Member
Registered: 2018-02-09
Posts: 24

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

piperfw wrote:

I have also noticed this functionality breaking at some point in the last week. qt5-base was recently upgraded from 5.15.3+kde+r133-1 to 5.15.3+kde+r134-1 on my system, as well as most 'k...' packages from 5.91.0-1 to 5.92.0-1. I expect one of these (kwindowsystem?) broke the default QT file dialogue - if you were minded you could try rolling back these packages until you find the issue, and then submit a bug report on https://bugs.kde.org/, although I would not hold your breath - I submitted one several months ago about not being able to resize the columns in the file dialogue and no action is yet to be taken on it.

I'm not too familiar with the interactions of the various dependencies like kwindowsystem, but I do have it installed as a downstream dependency of copyq.

The difference in my case from yours is that this has persisted for probably months now. Looking at my upgrade log, it could go to something circa early January / 5.15.2+kde+r268-1 but could very well be earlier. I figured something like this would have been reported and fixed by now if it were in fact a QT bug, which makes me suspect it's something local to my system. If it is in fact a QT bug, I'm guessing rolling that far back and staying on that version indefinitely is probably not worth the gain of fixing this.

If nothing else comes up though, I'll look into removing the other KDE packages like kwindowsystem or rolling back QT and seeing if it makes any difference.

Offline

#6 2022-03-17 10:47:45

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,295

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

Can reproduce on my laptop, but not on my desktop, with almost identical Arch installs. So this is either hardware (mouse vs. touchpad) or configuration specific.

Offline

#7 2022-03-17 13:02:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,244

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

QStyle related?

Offline

#8 2022-03-17 15:45:03

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,295

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

Removing the 'treeViewHeader' entry from .config/QtProject.conf fixes this. Probably worth reporting upstream.

Offline

#9 2022-03-17 23:00:31

ArchM
Member
Registered: 2018-02-09
Posts: 24

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

arojas wrote:

Removing the 'treeViewHeader' entry from .config/QtProject.conf fixes this.

This worked, thank you! If you have time - how did you identify this to be the culprit, what is the entry supposed to do and how did it get there?

arojas wrote:

Probably worth reporting upstream.

Would you like to submit the report to be rightfully credited in identifying the issue? If not, I can create an account and do it, not sure I am equipped to give a quality report though.

Offline

#10 2022-03-18 07:28:02

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,295

Re: [SOLVED] QT5 file selector (QFileDialog?) won't sort columns

ArchM wrote:

how did you identify this to be the culprit

Once this was identified to be a configuration issue, it is just a matter of comparing the Qt config files between the working and the broken system.

what is the entry supposed to do

It saves the current file dialog column state.

and how did it get there?

Apparently, Qt6 also uses that file and modifies it in a Qt5-incompatible way.

Would you like to submit the report to be rightfully credited in identifying the issue?

https://bugreports.qt.io/browse/QTBUG-101880

Offline

Board footer

Powered by FluxBB