How to get the final height of the widget that was added to the layout, but because of this, it has not changed to the final size?
Basically I need to do this:
myGridLayout->addWidget ( somewidget, 0, 0, 1, 1 );
QPushButton *b = new QPushButton(somewidget);
b->setGeometry( somewidget->width() - 50,
somewidget->height()/2 - 150,
50, 300);
What I want to do is insert a button (50x300) in the middle of the right edge of the newly added widget, but for this I need to know the size of the widget, which I do not get correctly, because it did not change to the full size in the layout. Any ideas?
source
share