Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt menu's with > 10 items get a scrollbar, and at the same time the view doesn't get wider #915

Closed
miguel-negrao opened this issue Jul 17, 2013 · 3 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead retest
Milestone

Comments

@miguel-negrao
Copy link
Member

Cocoa:

Qt:

@jamshark70
Copy link
Contributor

Yes, it would be very very very very very useful to be able to make a pop-up menu both wider and taller than Qt's defaults.

I may have omitted a few "very"s.

@scztt scztt modified the milestone: 3.7 Apr 18, 2015
@jamshark70
Copy link
Contributor

In Linux, the upgrade to Qt5 has fixed this issue "for free."

Can other people test OSX and Windows?

w = Window("popup test", Rect(800, 200, 200, 120));
p = PopUpMenu(w, Rect(2, 2, 50, 20))
.items_(Array.fill(15, { |i| "Very long item name" + i }));
w.front;

On my system, the widget is 50 pixels wide and shows only "Very." Clicking on the widget brings up a box that's much wider, and displays the complete strings. Also, Qt5 no longer puts in a scrollbar for >10 items.

@scztt scztt added the retest label May 26, 2015
@telephon
Copy link
Member

Works here on OS X 10.10. I suppose that counts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead retest
Projects
None yet
Development

No branches or pull requests

4 participants