Results 1 to 4 of 4

Thread: link an image

  1. #1
    Join Date
    Mar 2013
    Posts
    45
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    23

    Default link an image

    hi

    how can i change image behavior as a button ?

    Next.png

  2. #2
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Qt products
    Qt4 Qt5
    Platforms
    Windows
    Thanks
    92
    Thanked 16 Times in 16 Posts

    Default Re: link an image

    Which class are you using to contain image ? Is it QLabel or QPixmap or something ?

  3. #3
    Join Date
    Mar 2013
    Posts
    45
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    23

    Default Re: link an image

    I am useing QPixmap

    tnx

  4. #4
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Qt products
    Qt4 Qt5
    Platforms
    Windows
    Thanks
    92
    Thanked 16 Times in 16 Posts

    Default Re: link an image

    Why don't you use QPushButton or QToolButton and setIcon() to it.
    If this don't suit your requirement, explain what your are trying to achieve.

  5. The following user says thank you to rawfool for this useful post:

    smemamian (2nd July 2013)

Similar Threads

  1. Replies: 3
    Last Post: 3rd August 2012, 10:35
  2. Replies: 11
    Last Post: 5th May 2011, 14:05
  3. Replies: 3
    Last Post: 1st April 2011, 14:02
  4. How to link a Push Button with a Web link ???
    By prajnaranjan.das in forum Newbie
    Replies: 3
    Last Post: 10th December 2010, 07:25
  5. Replies: 1
    Last Post: 23rd May 2009, 09:04

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.