Hello and thaks for your answer.
I'm sorry, but I thought It wasn't necessary to include the code for changing the geometry of a layout.
Here is my code
{
QRect hboxRect
= ui.
hboxLayout->geometry
();
int difVer = event->size().height() - event->oldSize().height();
ui.
hboxLayout->setGeometry
( QRect(hboxRect.
x(), hboxRect.
y() + difVer, hboxRect.
width(), hboxRect.
height()));
}
void CWGraficaSimple::resizeEvent(QResizeEvent *event)
{
QRect hboxRect = ui.hboxLayout->geometry();
int difVer = event->size().height() - event->oldSize().height();
ui.hboxLayout->setGeometry( QRect(hboxRect.x(), hboxRect.y() + difVer, hboxRect.width(), hboxRect.height()));
}
To copy to clipboard, switch view to plain text mode
I just want to "move" the y cordenate of the layout.
Thanks a lot again.
Bookmarks