Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quick-controls-menu
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuya Nishihara
quick-controls-menu
Commits
c3e581ce
Commit
c3e581ce
authored
5 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
Add example of enabling pass-through dpi scaling
parent
92d6272e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.cpp
+4
-0
4 additions, 0 deletions
main.cpp
with
4 additions
and
0 deletions
main.cpp
+
4
−
0
View file @
c3e581ce
...
...
@@ -4,6 +4,10 @@
int
main
(
int
argc
,
char
*
argv
[])
{
QCoreApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QGuiApplication
::
setHighDpiScaleFactorRoundingPolicy
(
Qt
::
HighDpiScaleFactorRoundingPolicy
::
PassThrough
);
#endif
QGuiApplication
app
(
argc
,
argv
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment