複数の QPushButtons 50px を含む QVBoxLayout を一番上に移動するにはどうすればよいですか?
これは私のコードです。this->adjustSize()、this->repaint()を試しましたが動きません。
// get current geometry
QRect geo = ui->VBoxLayout->geometry();
// apply geometry, but substract 50px from y() to move it to the top
ui->VBoxLayout->setGeometry(
QRect(geo.x(), geo.y() - 50, geo.width(), geo.height())
);