Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.1.0
-
None
-
Ubuntu 13.04
Description
The OS can force the mainwindow's width go lower that it's minimum.
If i try this code:
void MainWindow::resizeEvent(QResizeEvent *e){
if(this->width()<this->minimumWidth())
QTimer::singleShot(1000, this, SLOT(wrong_size_of_window()));
}
void MainWindow::wrong_size_of_window()
{
this->resize(QSize(this->minimumWidth(),this->height()));
}
But this still doesn’t work quite well. Video demonstrating: (the reason i have set the singeshot timer to 1000 is just so you see what the function does.)
http://www.youtube.com/watch?v=OwE5h82-Pm8&feature=youtu.be
If in 0:08 the fuction didn’t resized the window, the buttons would be with semi texts, etc…..
Thread started at qt forums:
http://qt-project.org/forums/viewthread/31385/