Stylesheet and tree widget functions

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
3 posts • Page 1 of 1
sanikval
Posts: 8
Joined: Thu Jul 17, 2014 7:35 am

Stylesheet and tree widget functions

Post by sanikval »

Hi all,

if in the stylesheet use the properties of color or font:

QTreeView [type = "trees"] :: item
{
border-bottom: 1px solid;
}

then functions, like tree.setBackColor, don't work.


Any ideas? This is a bug or feature?

User avatar
schneebergera
Posts: 89
Joined: Sun Apr 03, 2016 5:52 pm

Re: Stylesheet and tree widget functions

Post by schneebergera »

Hello,

this is not related to stylesheet.
//backCol() change background color.
Please have a look to to find more detailed examples.

best regards,
Andreas

User avatar
primv
Posts: 1
Joined: Wed May 07, 2014 8:29 am

Re: Stylesheet and tree widget functions

Post by primv »

if in the stylesheet use the properties border, font, color etc:
QTreeView [type = "trees"] :: item
{
border-bottom: 1px solid;
}
then functions, like tree.setBackColor, don't work.

if in the stylesheet use the properties padding, margin etc or nothing:
QTreeView [type = "trees"] :: item
{
padding: 4px;
}
then functions, like tree.setBackColor, is work.

Post Reply
3 posts • Page 1 of 1