Results 1 to 5 of 5

Thread: problem in Displaying image on push button

  1. #1

    Default problem in Displaying image on push button

    Hi,

    How i can display image on pushbutton in QTDesigner...
    I tried by change style sheet(Add Resource->backround image or image,border image)options,but it is not displayed.

    and i attached sample file
    Attached Images Attached Images

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem in Displaying image on push button

    have you seen "icon" property?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3

    Default Re: problem in Displaying image on push button

    I didn't see "icon" property, where i need to see the "icon" property...
    i already add the .png image file to Resource Files (.qrc)in the project

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem in Displaying image on push button

    in property editor. look at it carefully.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. #5

    Default Re: problem in Displaying image on push button

    Thanks spirit, Now i can change the icon of push button by giving path to icon in property editor...
    but one think i didn't understand then what's the use of Change style sheet property for backround image ,border image or image

Similar Threads

  1. Displaying a portion of an image
    By tas in forum Qt Programming
    Replies: 4
    Last Post: 28th November 2008, 03:09
  2. problem about mouse button events
    By vql in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2008, 10:14
  3. Push Button problem!!
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2006, 16:31
  4. problem with the back ground image
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2006, 21:34

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.