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

High DPI resolutiuon scaling for QtScope #216

Closed
aschester opened this issue Oct 31, 2024 · 2 comments
Closed

High DPI resolutiuon scaling for QtScope #216

aschester opened this issue Oct 31, 2024 · 2 comments

Comments

@aschester
Copy link
Contributor

https://doc.qt.io/qt-5/highdpi.html

Can set Qt::AA_EnableHighDpiScaling and Qt::AA_UseHighDpiPixmaps, but this doesn't scale text. Other options may scale non-fixed size widget items (but not fixed size, of which there are a few...) and text but may clip text which doesn't fit into fixed-size widgets. The latter can be done by setting QT_SCALE_FACTOR >= 1 and launching the application. Can we do something similar, automaticall from within the program after its running but before it displays any graphics?

@aschester
Copy link
Contributor Author

Removing the fixed size works up to a point. The channel spin box is very slightly resized when its range is configured on boot and as a result can appear as hidden because the main widget window is not resized correctly. Various attempts at nested adjustSize calls to autosize the widget don't seem to fix the problem. Initializing the spin box range to 0, 99 in the acq toolbar constructor is a workaround that ensures the spin boxes are created with enough space to accommodate two digits each.

@aschester
Copy link
Contributor Author

Issue is now part of #146

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

No branches or pull requests

1 participant