[Qt-interest] [Re: QTreeView with checkbox]
Stacy Alley
salley at usgs.gov
Wed Apr 1 19:20:50 CEST 2009
Hi Yixun,
You can add a checkbox to each item in your tree view by doing something
like this:
treeItem->setCheckState(1, Qt::Checked);
or
treeItem->setCheckStat(1,Qt::Unchecked);
Where 1 = the column in which you would like the check box to live.
-Stacy
Yixun Liu wrote:
> Hi,
> Does QTreeView support checkbox for each item? I want to build a tree
> with checkbox for each item.
>
> Thanks.
>
> Yixun
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Stacy Alley
Astrogeology Team Programmer
U.S. Geological Survey
2255 North Gemini Drive
Flagstaff, AZ 86001
(928)556-7258
--
Stacy Alley
Astrogeology Team Programmer
U.S. Geological Survey
2255 North Gemini Drive
Flagstaff, AZ 86001
(928)556-7258
More information about the Qt-interest-old
mailing list