Results 1 to 2 of 2

Thread: Round Icon shaped QPushButton Click event

  1. #1

    Smile Round Icon shaped QPushButton Click event

    Hi,
    I wanted a round icon to function as a button. For this purpose i used a
    QpushButton
    set flat to true
    seticon a png file(round one).
    and border:none.

    This looks fine on screen but the real issue comes now.

    When the button is pressed, the image remains same. The pushed button effect is not there. (like gradient change to show that the button is in pressed state.

    How to do that. please help.
    - kc

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    510
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Round Icon shaped QPushButton Click event

    Hi, probably the "flat" property is responsible for this. Did you try it with a non-flat button?

    Ginsengelf

Similar Threads

  1. QPushButton -- Round shape
    By kishore7771 in forum Qt Programming
    Replies: 6
    Last Post: 15th February 2010, 12:40
  2. Replies: 7
    Last Post: 26th August 2009, 07:21
  3. QPushButton Icon Image
    By QbelcorT in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2009, 14:26
  4. QPushButton deleting itself on click
    By Cruz in forum Qt Programming
    Replies: 4
    Last Post: 23rd January 2009, 09:18
  5. QPushButton on Shift+Click?
    By vishal.chauhan in forum Qt Programming
    Replies: 3
    Last Post: 9th September 2008, 10:00

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.