[Qt-interest] QPushButton as delegate widget in a QTableView?
R. Reucher
rene.reucher at batcom-it.net
Fri Feb 18 17:56:38 CET 2011
On Friday 18 February 2011 17:48, evorgriahr at hispeed.ch wrote:
> ...
> What would be the best approach for doing this? I could put the buttons
> outside of the table view, but I think from a GUI design point of view
> it would be better if they were displayed directly with the row being
> edited. Could I just add these buttons as children of the table view's
> client window, or scroll area, and get the geometry and position of the
> cell at the end of the row in order to line them up with the data being
> edited?
How about using a QTableWidget (inherits QTableView) and to use
QTableWidget::setCellWidget() for the additional column?!
HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
Blood is thicker than water, and much tastier.
More information about the Qt-interest-old
mailing list