Results 1 to 2 of 2

Thread: Image on PushButton

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    107
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Image on PushButton

    Dear All,

    I have developed application using QLabel and Qpushbutton. I have created a application, here I need to call a SLOT by SIGNAL of QLabel (label is created and loaded with a image) by clicking on it.plz suggest me. In the QLabel I have linkactivated, hovered etc.How to use it...

    Similarly in Pushbutton also, I need to load a Image from qrc file, I can load it but I'm not able to scale it. plz suggest me.

    Thanks in Advance.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Image on PushButton

    load a Image from qrc file, I can load it but I'm not able to scale it
    Qt Code:
    1. button->setIconSize(size);
    To copy to clipboard, switch view to plain text mode 
    QLabel I have linkactivated, hovered etc.How to use it...
    Create slots in your class and connect to those signals.

Similar Threads

  1. PushButton
    By acuce in forum Qt Programming
    Replies: 2
    Last Post: 13th July 2012, 20:06
  2. Replies: 0
    Last Post: 29th September 2011, 09:41
  3. Replies: 3
    Last Post: 29th April 2011, 08:54
  4. connecting image to a pushbutton
    By sudheer in forum Qt Tools
    Replies: 2
    Last Post: 4th December 2007, 09:23
  5. why pushbutton moving??
    By Shuchi Agrawal in forum Qt Tools
    Replies: 7
    Last Post: 19th January 2007, 17:17

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.