Hi everyone.
I have a problem with QProgressBar in QTableWidget. It doesn't want to scale
On Windows it works the right way. I don't know what to do
Hi everyone.
I have a problem with QProgressBar in QTableWidget. It doesn't want to scale
On Windows it works the right way. I don't know what to do
C++ & AMD forever
How did you do it? With delegate or cell widget?
J-P Nurmi
I did it with setCellWidget method
C++ & AMD forever
Well, I would recommend using the delegate approach. It's much more light-weight. Check out the torrent example.
J-P Nurmi
Could you tell me more about this "delegate aproach" ?
C++ & AMD forever
Take a look at TorrentViewDelegate::paint() in mainwindow.cpp. This approach makes it possible to render progress bars in item views without need of flooding it full of rather expensive index widgets. Also, there is no need to explicitly maintain geometry of index widgets (which seems to cause problems in your case).
J-P Nurmi
Bookmarks