Hi,
I made class inherit from QListWidget and overrride resizeEvent:
Qt Code:
{ int width = event->size().width() / columnNumber - 10; setGridSize(iconSize()); }To copy to clipboard, switch view to plain text mode
But sometimes when I resize the widget by splitter, the application crash with this message:
What is the proper way to change iconSize and gridSize when user resize widget? I try to use BlockingQueuedConnection and emit signal to yourself, but this make dead lock.QPainter::begin: Paint device returned engine == 0, type: 2
Bookmarks