PDA

View Full Version : Possible bug . I can select treeitems by code and selectionmode = singleselection



tonnot
14th September 2011, 14:30
I'm sure. I can select by code more than 1 items and the treeWidget has singleselection mode ????


ui->treeWidget->topLevelItem(0)->setSelected(true);
ui->treeWidget->topLevelItem(1)->setSelected(true);
...

Is it a bug ?
I have to clear selection every time I select some item....