GuS
19th May 2008, 20:09
Hi all!!
This post is more an advice more than other thing.
I use a lot stylesheets implementation on my app. and so far there is not performance problems (and even when i use lot of pixmaps backgrounds).
For backrgrounds that needs to be scaled i use boder-image, for example, i use it only on pushButtons, comboBox, lineEdits, etc. Those are small images in fact, but when i try to use border-image on big widgets (lets say, a GroupBox) the performance start to decrease on the app. So, things start to interact more slow (like hover effect).
Is there any advice to improve this when i use border-image on bigger backgrounds?
By the way, i always use this method for border image, example of groupBox:
QGroupBox {
border-image: url(:/Styles/styles/groupBoxBg.png) 4 4 4 4 stretch stretch;
border-width: 4px 4px 4px 4px;}
Thanks in advance
Cheers.
This post is more an advice more than other thing.
I use a lot stylesheets implementation on my app. and so far there is not performance problems (and even when i use lot of pixmaps backgrounds).
For backrgrounds that needs to be scaled i use boder-image, for example, i use it only on pushButtons, comboBox, lineEdits, etc. Those are small images in fact, but when i try to use border-image on big widgets (lets say, a GroupBox) the performance start to decrease on the app. So, things start to interact more slow (like hover effect).
Is there any advice to improve this when i use border-image on bigger backgrounds?
By the way, i always use this method for border image, example of groupBox:
QGroupBox {
border-image: url(:/Styles/styles/groupBoxBg.png) 4 4 4 4 stretch stretch;
border-width: 4px 4px 4px 4px;}
Thanks in advance
Cheers.