I assume that you want to fit your width and height to the minimum and maximum size hint
if (your_width < minimumSizeHint().width())
{
your_width = minimumSizeHint().width();
}
else if (your_width > maximumSizeHint().width))
{
your_width = maximumSizeHint().width();
}
if (your_height < minimumSizeHint().height())
{
your_height = minimumSizeHint().height();
}
else if (your_height > maximumSizeHint().height())
{
your_height = maximumSizeHint().height();
}
resize(your_width, your_height);
if (your_width < minimumSizeHint().width())
{
your_width = minimumSizeHint().width();
}
else if (your_width > maximumSizeHint().width))
{
your_width = maximumSizeHint().width();
}
if (your_height < minimumSizeHint().height())
{
your_height = minimumSizeHint().height();
}
else if (your_height > maximumSizeHint().height())
{
your_height = maximumSizeHint().height();
}
resize(your_width, your_height);
To copy to clipboard, switch view to plain text mode
Bookmarks