How to insert QProgressBar in QTableWidget cell
I want to display progress bar in QTableWidget cell, is it possible at all!
Try it :
QTableWidget tw = new QTableWidget(1,1);
QProgressBar *pgbar = new QProgressBar();
This example inserts a QProgressBar in a QTableWidget with one row and one column;
Thanks for the reply!
Or, take a look at libQxt. It has a "delegate":http://libqxt.bitbucket.org/doc/0.6/qxtitemdelegate.html that can do this without relying on adding widgets explicitly, and that works with data from the model itself.