Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Adjust the parent size when child is hidden

$
0
0
I have the following dialog structure: It’s a splitter with frames where is each frame contain button and scroll area. When the user uncheck the button the scroll area is hiding. And result is: So the button just aligned on the center of frame. But I want another behavior like on the following image: If I understand correctly I just need call adjustSize() for the frame when I hide the scroller: void MainWindow::on_btn_1(bool b) {     ui->scrollArea->setVisible(b);     ui->frame->adjustSize(); } But unfortunately it’s does not work :-( Thanks. Link to the source code: [files.rsdn.ru]

Viewing all articles
Browse latest Browse all 13965

Trending Articles