PDA

View Full Version : why on Linux ,doesn't work?



maider
10th March 2010, 15:26
Good afternoon!

I'm having a problem on Linux. My computer has got Windows Xp system. I have done an application where I use a transparent button which has a white border and text.
I have done in this way:
background-color: rgba(255, 255, 255, 0);
color: rgb(255, 255, 255);

Nowadays, i want to do the same but on Linux. To achieve my goal, I have inserted a virtual machine into windows and there install qt.
The problem is that when i run the application the border of the button doesn't appreciate. It looks as if it is a transparent button without border.

Do you know why? what am i doing wrong?

thanks!!

Cruz
10th March 2010, 15:53
Probably your border got transparent too. How about setting a border style explicitely?

maider
10th March 2010, 16:38
i have tried :
background-color: rgba(255, 255, 255, 0);
color: rgb(255, 255, 255);
border-style: rgb(255, 255, 255);

but it doesn't work

Cruz
10th March 2010, 16:50
I think it should be border-color and not border-style.

maider
11th March 2010, 08:14
yes,you are right!!! it is border-color, i confused myself.

However, although in this way on windows works perfectly , on linux that it is where i want to run my application, the border-color doesn't appear.
I don't want to see the border color of the button only when it is selected! I always want to see!!!

Does anybody know what is what am i doing wrong??

thanks!

maider
11th March 2010, 09:57
i have get it doing in this way:

color: rgb(255, 255, 255);
background-color: qlineargradient(spread:pad,x1:0,y1:0,x2:1,y2:0,sto p:1 rgba(0,0,0,255));


One question more when i selected the property enabled(true) i see a small focus in the pushbutton. how can i remove this focus?