How to change background of simple object rectangle through stylesheet.css

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
emst
Posts:4
Joined: Thu Jan 26, 2017 2:03 pm

How to change background of simple object rectangle through stylesheet.css

Post by emst »

Hi all

For my project I have to provide stylesheet.css file where some of objects used in panels will have a possibility to customize a background color.
I was able to set all of my object , but simple rectangle and circle object makes me a problem.
Does someone can help me how to define background color of rectangle in stylesheet.css ?

Thanks a lot for help

Milan

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: How to change background of simple object rectangle through stylesheet.css

Post by fmulder »

You can only style the qt shapes like QButton. Qtable, Qxxx.
The simple shapes are just drawn using native drawing commands. The simple shapes can not be styled.

You could of course define your own ascii file format and build your own sort of 'styling'

Share the fun
Frenk Mulder

emst
Posts:4
Joined: Thu Jan 26, 2017 2:03 pm

Re: How to change background of simple object rectangle through stylesheet.css

Post by emst »

Hi Frenk

Thanks a lot for answer

Regards

Milan

3 posts • Page 1 of 1