Hi, I tried use a Qframe to put myWidget in, but the problem arise is an old problem: the "cout" print the value 101 because the first time QFrame is drawn with wrong width; only if I resize window app, frame3 take correct value:700; So myWidget4 is drawn in a small square instead of all frame3 dimensions; how do I avoid this? thanks
//myMainform constructor
myWidget4 = new MyWidget(frame3, "Advance", myWidget1);
myWidget4->setGeometry(frame3->x(), frame3->y(), frame3->width(), frame3>height());
cout << "frame widget() " << frame3->width() << endl;
//myMainform constructor
myWidget4 = new MyWidget(frame3, "Advance", myWidget1);
myWidget4->setGeometry(frame3->x(), frame3->y(), frame3->width(), frame3>height());
cout << "frame widget() " << frame3->width() << endl;
To copy to clipboard, switch view to plain text mode
Bookmarks