[Qt-interest] custom QTableView editor widget size question
Israel Brewster
israel at frontierflying.com
Wed Jan 7 18:34:18 CET 2009
So, no responses. Should I take that to mean there is no solution? Oh
well, such is life. I'll just have to make the column wider than it
needs to be or something. Maybe temporarily expand it during editing,
although that would be very kludgy.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
On Jan 5, 2009, at 8:23 AM, Israel Brewster wrote:
> 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
> -----------------------------------------------
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list