[Qt-interest] QTableView doesn't use delegate

Israel Brewster israel at frontierflying.com
Fri Dec 11 20:59:01 CET 2009


On Dec 11, 2009, at 9:35 AM, Timothy Reaves wrote:

>
> On Dec 11, 2009, at 12:35 PM, Israel Brewster wrote:
>
>>
>> On Dec 11, 2009, at 6:41 AM, Timothy Reaves wrote:
>>>
>>
>
>
> 	Well, it looks like the main differences are I call  
> setItemDelegate(), not setItemDelegateForColumn().  I also don't  
> implement updateEditorGeometry().  I'll play around with your code  
> as see what I get.

the updateEditorGeometry was just in there because I wanted the editor  
widget (a QSpinBox in this case) to be created somewhat larger than  
the cell being edited so I wouldn't loose editing space to the up and  
down arrows. The setItemDelegateForColumn() rather than  
setItemDelegate() was because this delegate was just for a single  
column, not the entire table- the function works the same way. Neither  
difference, however, should have any impact on what you are doing. As  
you followed up to say the functions are getting called after all,  
though, you probably already figured that out :-)

>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 417 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091211/4c9ea286/attachment.bin 
-------------- next part --------------




More information about the Qt-interest-old mailing list