[Interest] Tree widget: rearrange elements

Sensei senseiwa at gmail.com
Wed Aug 29 11:42:28 CEST 2012


On 8/29/12 10:53am, Tibold Kandrai wrote:
> Hi,
>
> You can try to set flags on the invisibleRootItem:
> http://doc.qt.nokia.com/4.7-snapshot/qstandarditemmodel.html#invisibleRootItem
>
> I never used this, but it worth a try. :)


It would be cool, but it doesn't work...

     invisibleRootItem()->setFlags(invisibleRootItem()->flags() & 
(~Qt::ItemIsEditable) & (~Qt::ItemIsDropEnabled));


Any other ideas?



More information about the Interest mailing list