Skip to content

Keep the tileset menu in one scrollable column - #4635

Open
vtxe02023274 wants to merge 1 commit into
mapeditor:masterfrom
vtxe02023274:tileset-menu-scroll
Open

vtxe02023274 wants to merge 1 commit into
mapeditor:masterfrom
vtxe02023274:tileset-menu-scroll

Conversation

@vtxe02023274

@vtxe02023274 vtxe02023274 commented Oct 20, 2026 •

Copy link
Copy Markdown

Closes #4558

When a menu has more items than fit on the screen, Qt lays it out in more columns instead of making it scroll, so with many tilesets the tileset menu grew sideways past the edge of the screen. The tileset menu now sets menu-scrollable, so it stays one column and scrolls like a long menu does on macOS.

I used a style sheet with only that property instead of a proxy style, since a proxy would be built around the style at startup and the style can change in the preferences.

Tested with a small Qt 6.8 program on Windows:

  • 1000 actions in a default menu: 1920 px wide on a 1920 px screen, the later columns are off screen. With menu-scrollable: one column, 169 px wide.
  • A short menu (checkable items, separator) rendered with and without the style sheet in the windows11, windowsvista and fusion styles: 0 pixels differ, so the menu looks the same.

Tiled itself builds with the change; I did not set up a project with hundreds of tilesets to click through it.

#4589 makes the tab bar itself scroll. This one is about the menu from the button in the screenshot of #4558, which overflows on its own, so the two do not overlap.

With many tilesets the menu grew into columns that went past the edge of the screen, so tilesets on the right could not be picked. Closes mapeditor#4558

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No scrollbars when use too many Tilesets

1 participant