Hello,

I've two problems with my WTreeView:
- I created it with following code:


filesTree = new WTreeView(mainTable->elementAt(0,0));
 filesTree->setModel(filesModel);
 filesTree->setSelectionMode(SingleSelection);
 filesTree->setStyleClass("folderlist");

But the selected items are not highlighted.


Is it possible to style the items with stylesheets like in WComboBod-Items?
I tested

WStandardItem *item = new WStandardItem();

item->setData(boost::any(WString("filesfolderentry")), StyleClassRole);

item->setText("test");


But it doesn't work. I see the item, but the style isn't the set style


Greetings
Torsten

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to