Results 1 to 2 of 2

Thread: who know about making button with text and image

  1. #1
    Join Date
    Mar 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Exclamation who know about making button with text and image

    hello!
    I just ask for this problem in my project,
    i need the button what is used like QPushButton. but it should be included background image. and using text as well.

    whan i put the image to button..
    i should use the image that is not original size.
    I must leave left and right side and extend center area.

    who let me know about this problem..!!

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: who know about making button with text and image

    You can use an image as background image for button.
    Or you can subclass the button, and draw the image as background yourself.
    Also look for similar threads... this one might help

Similar Threads

  1. browse button & load image
    By electronicboy in forum General Programming
    Replies: 1
    Last Post: 24th October 2009, 16:06
  2. Button icon and text
    By electronicboy in forum Qt Programming
    Replies: 5
    Last Post: 9th October 2009, 23:27
  3. Button Text Position
    By Slewman in forum Qt Tools
    Replies: 1
    Last Post: 29th September 2009, 17:35
  4. Making Icon with more than one image
    By weepdoo in forum Qt Programming
    Replies: 9
    Last Post: 11th June 2007, 14:55
  5. Image on button
    By windkracht8 in forum Qt Programming
    Replies: 11
    Last Post: 14th August 2006, 13:10

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.