ok look, the problem is that i cant get the widgets inside tabwidget in my application resize along with the main window when the user resizes it.
first i tried to do this (as posted in the first post)
/* i suppose that when the user resizes the window, the height changes so i tried to check it with the following : */
if(!minimumSize().height == 800) //where 800 is the default height for the window
{
tabwidget->updateGeometry();
// centralWidget->updateGeometry();
// setupUi(this);
}
/* i suppose that when the user resizes the window, the height changes so i tried to check it with the following : */
if(!minimumSize().height == 800) //where 800 is the default height for the window
{
tabwidget->updateGeometry();
// centralWidget->updateGeometry();
// setupUi(this);
}
To copy to clipboard, switch view to plain text mode
then Lykurg suggested to use layouts, but when i lay the widgets inside my tabwidget in a grid layout it messes the potition of the widgets up and i cant get them to where i want them to be shown.
Bookmarks