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?
Stylesheet and tree widget functions
- schneebergera
- Posts:89
- Joined: Sun Apr 03, 2016 5:52 pm
Re: Stylesheet and tree widget functions
Hello,
this is not related to stylesheet.
//backCol() change background color.
Please have a look to to find more detailed examples.
best regards,
Andreas
this is not related to stylesheet.
//backCol() change background color.
Please have a look to to find more detailed examples.
best regards,
Andreas
- primv
- Posts:1
- Joined: Wed May 07, 2014 8:29 am
Re: Stylesheet and tree widget functions
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.
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.