Results 1 to 2 of 2

Thread: Buttons - color frames

  1. #1
    Join Date
    Nov 2012
    Location
    Poland/UK
    Posts
    28
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Buttons - color frames

    I made transparent button, but I also want to do a color frame to this button.

    My code to transparent background:
    Qt Code:
    1. setStyleSheet("background-color: rgba( 255, 255, 255, 10% );" );
    2. setAttribute(Qt::WA_TranslucentBackground);
    To copy to clipboard, switch view to plain text mode 

    How to make such frames ?
    stock-vector-gray-glassy-blank-web-button-with-color-frame-49078348.jpg

  2. #2
    Join Date
    Feb 2010
    Posts
    96
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Buttons - color frames

    use the border and border-radius tags.

Similar Threads

  1. Can't see frames around widgets
    By paie in forum Newbie
    Replies: 3
    Last Post: 11th August 2011, 14:11
  2. Camera Frames in UI
    By Johncdy in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2011, 02:03
  3. Move Frames
    By Slewman in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2009, 14:03
  4. Display frames
    By bmn in forum Qt Programming
    Replies: 1
    Last Post: 30th April 2008, 10:26
  5. why do buttons don't change color?
    By Raccoon29 in forum Qt Programming
    Replies: 9
    Last Post: 16th November 2007, 12:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.