Font on Desktop is ok, on Anroid is too Big
Solved
QML and Qt Quick
-
Hello, I'm new to QtQuick, I have this TableView
Qtc1.TableView { width:parent.width height:parent.height*2/3 id: products Qtc1.TableViewColumn { role: "title" title: "Title" width: parent.width/2 } Qtc1.TableViewColumn { role: "cost" title: "Cost" width: parent.width/2 } /*onPressAndHold: { mediator.removeItem(currentRow) }*/ model:mediator.myModel }
This is the Desktop mode
And this is the Android Mode
-
Hi,
Did you forgot to disable
QT_SCALE_FACTOR
for desktop ? -
@athandev
You could just use defines as @KillerSmath shows.
and set QT_SCALE_FACTOR (or disable)
pr platform. -
I have the same problem between desktops (Windows vs. Mac), so I use a set of dynamically defined constants, like this:
property int smallFontSize: (Qt.platform.os === "osx") ? 12 : 8;