Results 1 to 4 of 4

Thread: How to make the push button to curly shape?

  1. #1
    Join Date
    Nov 2011
    Posts
    45
    Qt products
    Qt4
    Platforms
    Symbian S60

    Post How to make the push button to curly shape?

    Hi all,
    I am new to Qt and i am trying to set homescreen for my application using UI design.I had attached two images out of those: the first one shows the shape of button image which i had designed and the second one is the shape required for my design.

    The button in my design is in rectangle shape but i need to make it as a curly one.I am using more than five buttons on my home screen so anyone come with the answer

    Is there any property or code to be added so that i can make it my design as required?

    Anyone help me with this.?


    Thanks in Advance;
    Harish [/QUOTE]btn.jpgbutton.jpg

  2. #2
    Join Date
    Oct 2007
    Location
    Lake Forest, CA, USA
    Posts
    132
    Thanks
    10
    Thanked 27 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: How to make the push button to curly shape?

    Set border-radius in style sheet.
    Oleg Shparber

  3. #3
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    97
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to make the push button to curly shape?

    Quote Originally Posted by Oleg View Post
    Set border-radius in style sheet.
    that and i set the icon size to the image size so if my pixmap = 25 x 25 then my button icon size should be 25 x 25 as well as the button size

  4. #4
    Join Date
    Oct 2007
    Location
    Lake Forest, CA, USA
    Posts
    132
    Thanks
    10
    Thanked 27 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: How to make the push button to curly shape?

    Another option is to use images for borders (see border-image) and repeatable background.
    Oleg Shparber

Similar Threads

  1. Action using Push Button ?
    By steve.bush in forum Newbie
    Replies: 7
    Last Post: 25th February 2016, 15:36
  2. Hareware Push Button
    By mickeyk191 in forum Newbie
    Replies: 2
    Last Post: 26th January 2010, 12:41
  3. A very small push button
    By Gnurou in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2009, 03:04
  4. shape of push button
    By Seema Rao in forum Qt Programming
    Replies: 23
    Last Post: 2nd April 2008, 01:05
  5. Push Button problem!!
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2006, 16:31

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.