[SOLVED] Resizing mainwindow will not put in right place listwidget's items!
-
So if resize the mainwindow the items of a listwidget are not placed as they should..
If i resize it and then add an item it somehow updates the listwidget and fixes the problem.. so what to do in resizeevent to fix this problem?
This is not working:
@void MainWindow::resizeEvent(QResizeEvent *)
{
ui->listWidget->repaint();
}@Youtube video of my problem : http://www.youtube.com/watch?v=KlT1qCF_kwg
-
Set "resizeMode":http://qt-project.org/doc/qt-4.8/qlistview.html#resizeMode-prop property of QListView class to 'adjust'.