[Qt-interest] custom QTableView editor widget size question
Israel Brewster
israel at frontierflying.com
Mon Jan 5 18:23:54 CET 2009
I have a QTableView, and by subclassing QItemDelegate and re-
implementing the createEditor function, I have a QSpinBox with custom
limits as my editor. This is good. However, I would like to make the
QSpinBox larger than the actual cell being edited, that is I'd like
the up and down arrows of the QSpinBox to be overlapping the next cell
so that the editor portion of the spin box is the same size as the
cell being edited. Now obviously you can't make the editor widget any
larger than its parent widget, but I figured I could get around this
by setting the main window as the parent and manually adjusting the
position. This, however, doesn't work- while it does allow me to
adjust the position of the editor freely, it still seems to be limited
to the size of the cell being edited, and I can't make it any larger.
Is there any way to get around this limitation? Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
More information about the Qt-interest-old
mailing list