Author Topic: Minor issue TreeBoxNode.setBackgroundColor broken?  (Read 4400 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Minor issue TreeBoxNode.setBackgroundColor broken?
« on: 2015 August 09 15:47:59 »
I believe TreeBoxNode.setBackgroundColor used to work, but does not now, neither in 1123 nor 1171. Background stays white in Win7 always.

Thanks,
Mike

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Minor issue TreeBoxNode.setBackgroundColor broken?
« Reply #1 on: 2015 August 11 12:10:17 »
Hi Mike,

True. I'll try to fix this issue in the next version.

Try with the following style sheet (for example):

Code: [Select]
QTreeView::item {
   background: green;
}

This style sheet has to be set for the parent TreeBox control. Unfortunately, it doesn't work on a per-item basis, so I suspect this is not what you want...
Juan Conejero
PixInsight Development Team
http://pixinsight.com/