Hi,
b->setGeometry(20,90, 100,40);
myFrame->setGeometry(0,0,200, height() );
QPushButton* b = new QPushButton(myFrame);
b->setGeometry(20,90, 100,40);
myFrame->setGeometry(0,0,200, height() );
To copy to clipboard, switch view to plain text mode
I'd like height of myFrame is equal to height() if it return a value that can contain button b;
Otherwise I'd like add a value to height to make b buton visible. How do it? Exist a function that return the value minimun_height_to_contain_the_object_inserted? Or Do I implement it?
(the height() value change in relation to height of my application window and this I want! but the button b is not visible)
Bookmarks