Hi,
I am trying to setup a tree visualization like in this picture (with "+" and "-" signs):
http://qt.developpez.com/doc/4.6/ima...el-example.png
but I only see the default setup with triangles.
I have checked the stylesheet reference , downloaded and put the vline.png and branch-more.png from the internet and put it into the build directory , also just in case copied to source directory, and also added as resource. But the images won't show up.
The code to set the stylesheet of the QTreeView is this:

Qt Code:
  1. deptree=new QTreeWidget();
  2. deptree->setColumnCount(2);
  3. deptree->setStyleSheet("QTreeView::branch:has-siblings:!adjoins-item { border-image: url(:/images/deptrack_images/vline.png) 0; }");
  4. deptree->setStyleSheet("QTreeView::branch:has-siblings:adjoins-item { border-image: url(:/images/deptrack_images/branch-more.png) 0;}");
  5. deptree->setStyleSheet("QTreeView::branch:!has-children:!has-siblings:adjoins-item { border-image: url(branch-end.png) 0;}");
  6. deptree->setStyleSheet("QTreeView::branch:has-children:!has-siblings:closed,");
  7. deptree->setStyleSheet("QTreeView::branch:closed:has-children:has-siblings { border-image: none; image: url(notexistentfile.png); }");
  8. deptree->setStyleSheet("QTreeView::branch:open:has-children:!has-siblings,");
  9. deptree->setStyleSheet("QTreeView::branch:open:has-children:has-siblings { border-image: none; image: url(branch-open.png); }");
  10.  
  11. twi=new QTreeWidgetItem();
  12. twi->setText(0,"uno");
  13. deptree->addTopLevelItem(twi);
  14. ptwi=twi;
  15.  
  16. twi=new QTreeWidgetItem();
  17. twi->setText(0,"subuno");
  18. ptwi->addChild(twi);
  19.  
  20. ptwi=twi;
  21. twi=new QTreeWidgetItem();
  22. twi->setText(0,"subsubuno");
  23. ptwi->addChild(twi);
  24.  
  25. main_layout->addWidget(deptree);
  26. tree_test->setLayout(main_layout);
  27. tree_test->show();
To copy to clipboard, switch view to plain text mode 

I think the problem is: QT can't locate the images. How do I know , if the image is opened successfuly by the stylesheet? I have ran the debugger with "Step In" to setStyleSheet() method but it doesn't do anything there, that would look like opening an image, it even doesn't get close to stylesheet code. I also have put wrong image file names on purpose, and it is absolutely ignored, the triangles keep appearing as nothing hapened.

Is there any example of a table I am trying to do online so I could copy and paste the code?

TIA