Results 1 to 3 of 3

Thread: How to make the button image to the required format?

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

    Post How to make the button image to the required format?

    btn.jpgbutton.jpg

    Hi all,
    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 my button image i had designed and the second one is the shape required.

    Is there anyway to bring that shape to my design?Anyone help me with this.


    Thanks in Advance;
    Harish.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to make the button image to the required format?

    I have done something like that with border-image in a style sheet to get scalable buttons:
    Qt Code:
    1. border-width: 4px;
    2. border-image: url(:/style/button-border.png) 4;
    3. }
    To copy to clipboard, switch view to plain text mode 
    With an image like this:
    button-border.png

    You could also try a simple background image.

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

    Post Re: How to make the button image to the required format?

    Thank you for your answer i tried that and got the required format but out of all the buttons one button image is having the border line in black colour.

    May i know what might be the reason for it and how to overcome this?

    Regards,
    Harish

Similar Threads

  1. How to make QSvg Format Images
    By Sergex in forum Qt Programming
    Replies: 1
    Last Post: 6th October 2011, 13:24
  2. TIFF image Format
    By dima in forum Qt Programming
    Replies: 7
    Last Post: 13th September 2010, 13:42
  3. How can change image format?
    By electronicboy in forum Qt Programming
    Replies: 2
    Last Post: 25th October 2009, 09:44
  4. QGraphicsScene...How to have your own format for button,etc..???
    By salmanmanekia in forum Qt Programming
    Replies: 11
    Last Post: 16th June 2008, 08:42
  5. Image format without bounding rect
    By dreamer in forum Qt Programming
    Replies: 5
    Last Post: 30th April 2008, 22:25

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.