Hy
I need a elastic layout so that when you stretch the mainwindow all items in it also stretch.
I have:
1) QMainWindow
2) GraphicsView
3) GraphicsItem on the Scene
Currently i have a grid layout added to my class.
My GraphicsView i set to expanding in the designer so that's good. But i have a QGraphicsItem circle that does not expanding together with his parent.
What i need is when you make window smaller, item also smaller. When you make window bigger item also bigger. How can i acomplish this? I'm searching and reading some hour or so and can't find it.
I'm not sure what i'm looking for, but i thought that something like this in the constructor i need:
pseudo-code:
this_constructed_object->stretch_with_parent_QGraphicsView
i don't really know...but i think that i need something like that in the constructor of my class:
Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks