[Qt-interest] Find column in QStandardItemModel
Israel Brewster
israel at frontierflying.com
Mon Jul 20 21:13:28 CEST 2009
What is the best way to find a column with a given name (as set in the
horizontal header) in a QStandardItemModel? Or, perhaps more to the
point, to determine IF a column with a given label exists? So far the
only way I have been able to think of is to go through a loop for the
number of columns, and compare the headerData for each column to what
I am looking for. This would probably be fine, but feels somewhat
kludgy to me. Thanks.
-----------------------------------------------
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: 397 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090720/a340600d/attachment.bin
-------------- next part --------------
More information about the Qt-interest-old
mailing list