May 18, 2012

needhelp_gh needhelp_gh
Ant Farmer
54 posts

[Solved] Qt Border Color

 

Hi,

I am trying to change the border color of any UI element in Qt, but it doesn’t seem to have effect when I click on the item & go to stylesheet & write:

  1. border-color: rgb(0, 0, 0);

Anyone else get this or have a solution? Thanks!!

 Signature 

————————————————-
http://abstrusegoose.com/432

4 replies

May 19, 2012

Sam Sam
Area 51 Engineer
612 posts

Hi,

You need to write

  1. border: 2px solid red;  

May 19, 2012

francomartins francomartins
Hobby Entomologist
61 posts

try it :

  1. border-color: rgb(0, 0, 0);
  2. border-width : 1.2px;
  3. border-style:inset;

working for me

May 22, 2012

needhelp_gh needhelp_gh
Ant Farmer
54 posts

Worked!! Thanks, guys. :)

 Signature 

————————————————-
http://abstrusegoose.com/432

May 23, 2012

Sam Sam
Area 51 Engineer
612 posts

Kindly edit your first post and set the title as [Solved].

Thanks

 
  ‹‹ [Solved] Qt/PyQt/Sip - How can I find the current version of each on my linux machine?      get a list of subdirectory and file in special path as soon as possible ››

You must log in to post a reply. Not a member yet? Register here!