Unsolved qml GUI not scaling
-
Hi,
I have made my GUI in qml, but its not scaling when executing in small screen some part of GUI is going down and when I am trying resizing with mouse its not coming.
I hope you understand my question.Please give me solution .
Thanks in advance. -
@DivyaMuthyala
how did you define the sizes of your elements? Are you using anchors in your QML code?
Are you using a QQuickView? If so did you set it's resize mode to QQuickView::SizeRootObjectToView? -
Hi raven-worx,
I am using anchors ....
-
@DivyaMuthyala
You can use the QScreen to get the screen resolution and pass it to QML using QQmlContext.
Are you using Screen.width & Screen.height in QML ? based on that you need to scale the screen and anchor it. -
Hi Pradeep,
Can you please share me that piece of code??
-
Hi,
Anyone please help me to rescale gui ..Thanks in advance
-
@DivyaMuthyala
read this carefully.Also you didn't answer all of my questions yet.
-
Hi Raven-Worx,
I am using widget and height for sizes and iam using anchors.
-
Hi Raven-Worx,
I am using width and height for sizes and i am using anchors.
-
@raven-worx said in qml GUI not scaling:
this:
Are you using a QQuickView? If so did you set it's resize mode to QQuickView::SizeRootObjectToView?
and also make sure to read the link of my last post.
-
Hi raven-worx,
Thanku for reply, once I will go through the link.