Scaling
-
hi everybody!
How can i achieve qml objects to scale together with main window. Like example calculator in Qt. I looked at the code but is there any simpler solution?
-
I think you'll have to use "anchors":http://doc.qt.digia.com/qt/qml-anchor-layout.html.
-
oh my. I am noob :D i forgot about anchors. Yea that might work :D.
-
Well i dont think this is gonna work :(.
-
First sorry for my english i will try to explain. Imagine this. I have a plan of a room. In this room i have to insert different icons which are interactive. I did that thats not a problem. For every icon i did an object and insert as a child in the room. But now i want that when i scale window, room and icons scale too. For room it was easy i just assign window height and width to room object. But icons height and width stay the same.
-
Problem is that i have images. With rectangles anchors works perfectly. With images not.
-
sorry i am wrong. Anchors works thanks everyone :).