Screen design problems
-
@AxelVienna I would like to report the font's being used, just something like:
qDebug() << fontInfo.family(); qDebug() << fontInfo.pixelSize(); qDebug() << fontInfo.pointSize();So I can verify what is being used and its size.
-
Well, if everything is the same on both screens, the issue is screen scaling on desktop level as @artwaw correctly said. You will find it out by trying a totally different executable, e.g. Microsoft Excel and see if it behaves the same.
@SPlatten: Regarding your homemade widgets, my suspicion is that they simply do not resize. This can result from multiple reasons, including that no resize methods have been implemented for them.
-
Well, if everything is the same on both screens, the issue is screen scaling on desktop level as @artwaw correctly said. You will find it out by trying a totally different executable, e.g. Microsoft Excel and see if it behaves the same.
@SPlatten: Regarding your homemade widgets, my suspicion is that they simply do not resize. This can result from multiple reasons, including that no resize methods have been implemented for them.
@AxelVienna The widgets are in the correct position and size on each render, the only issue is the text labels in the QGroupBoxes which appear to small for the labels.
-
@SPlatten: Okay. My suspicion comes from the fact that their headings do not seem to be centered. "Marquage Stagaire" right from the center. Which kind of layout does the QGroupBox "Stagaire" have? And what is the size policy of the QComboBox next to "Stagaire a voir"?
-
@AxelVienna , those widgets don't use layouts at all, they are rendered to an offscreen painter then copied as an image to the visible area.
-
@AxelVienna , those widgets don't use layouts at all, they are rendered to an offscreen painter then copied as an image to the visible area.
-
@SPlatten I think that's the culprit - layouts provide proper scaling and resize. But I have no idea how can you overcome that using already implemented approach.
-
@SPlatten Since you are on Windows - there might be additional issue of desktops scaling per screen I think? At least looks very much alike.
@artwaw said in Screen design problems:
Looking at that link it shows;
<application> -platform windows:dpiawareness=0,1,2How does this translate into an entry in the qt.conf file? I've added:
[Platforms]Not sure what the actual configuration should look like.
[edit] I found something online, not sure if its correct, have edited qt.conf in C:\Qt\Qt5.9.2\5.9.2\msvc2015_64\bin\qt.conf:
[Platforms] WindowsArguments = dip awareness = 0 -
@artwaw said in Screen design problems:
Looking at that link it shows;
<application> -platform windows:dpiawareness=0,1,2How does this translate into an entry in the qt.conf file? I've added:
[Platforms]Not sure what the actual configuration should look like.
[edit] I found something online, not sure if its correct, have edited qt.conf in C:\Qt\Qt5.9.2\5.9.2\msvc2015_64\bin\qt.conf:
[Platforms] WindowsArguments = dip awareness = 0 -
@SPlatten
WindowsArguments =orWindows =I think.@artwaw said in Screen design problems:
Thank you, I've also used the command line option:
-platform windows:dipawareness=0Which works.