Hi guy! I'm here again with a new problem!
I search, and search, and search... So let me explain. I've a QListWidget, but when a resize items, they are the one on the other. They adjust only when I'm move by a drag&drop.
I've try to use update and repaint, but without any success! Someone could help me?
Code:
for (int i = 0; i < widgetList->count(); i++) { if (groupeListWidget.at(i)->count() != 0 && groupeListWidget.at(i)->count() != 1) { widgetList->sizeHintForColumn(0), (26* groupeListWidget .at(i)->count()) + 54)); widgetList->itemWidget(widgetList->item(i))->adjustSize(); } widgetList->update(); //or repaint() }
The items are those of the widgetList
PS: My QListWidget contains another QListWidget, but it doesn't matter, I think.