In my Qt application I'm dynamically creating and adding them inside one. When I add the first view inside the grid, the view covers all the space available inside the grid. Then I add another view and there are two identical-sized views inside the grid. Then I add the third view and within the grid there are three equally sized ideas I and so on.
How do I get the update size of the first scene?
Below is my trial but I think it is not working.
// Definition of IdeasRyirov static const int parapro = 3; Zero Window :: newViewRequested () {QGraphicsView * View = New QGraphicsView; View-> SetVisible (true); ViewVector.push_back (see); For (int i = viewgrid-> count (); i & lt; visual acctor coat (); i ++) {visualgrid-> adview (see, eye / videophero, i% visual peerro); } QDebug () & lt; & Lt; Visual Grid-> Cellrect (0,0); You should probably use QWidget :: rect ()
To get the geometry of ideas here is a sample which should serve as purpose.
QVector & lt; QGraphicsView * & gt; View; For (int i = 0; i & lt; 3; ++ i) {QGraphicsView * View = New QGraphicsView; View-> SetVisible (true); Visual Grid-> Adviset (see, I, 0); Views.push_back (see); } QDebug () & lt; & Lt; "View size of the first scene" & lt; & Lt; Thoughts [0] - & gt; Rect ();
Comments
Post a Comment