hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

Tab selection bugged when many tabs are open with Qt6

Open aaronata opened this issue 3 years ago • 1 comments

Hydrus version

499 Qt6

Operating system

Windows 10

Install method

Installer

Install and OS comments

No response

Bug description and reproduction

When you have a lot of tabs open and you are viewing tabs at the end of the list, the selected tab will always be the rightmost tab in the window.

  1. Open enough tabs where it fills the top bar and the <> buttons appear.
  2. Make the window smaller
  3. Open the very last tab.
  4. Now open a tab in the center of the screen. Your view of the tab bar will move such that the tab you selected is now the rightmost tab.

I'm not sure how to better word this, so here's a video demonstration. https://youtu.be/AYSUcnbnyDo

This makes it impossible to drag images from one tab to another, or change the order of tabs.

The <> buttons seem to move the view around, but attempting to scroll, move images, and select new tabs breaks it again.

This was not an issue with Qt5.

Log output

No response

aaronata avatar Sep 16 '22 13:09 aaronata

Damn, this is annoying. I can repeat this behaviour. I have run into this basic idea before and have some text on options->gui pages talking about it. In Qt5 it only does this 'put current selection to rightmost visible position' when the page is renamed, but here in Qt6 it does it on every page change. I had vaguely hoped Qt6 would improve this specific issue, instead it seems to have become worse.

EDIT: ok, after some searching, here we are, the official Qt Bug report: https://bugreports.qt.io/browse/QTBUG-45381

I cannot fix this on my own without reimplementing the whole TabBar. I may do this one day to add multi-layer tab stack support, but I think right now I am going to pray that the Qt guys fix this or add some style flags or something to change the behaviour.

Sorry I can't help! This situation has always sucked, so I recommend you get your page names eliding nicely and try to use some Page of Pages to stack things more efficiently.

hydrusnetwork avatar Sep 27 '22 22:09 hydrusnetwork