Results 1 to 4 of 4

Thread: Button Effects

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Button Effects

    Hi,everyone=)

    l'm trying to create a button with icon , which when mouse over the icon button can show zoom effect like the bellow image shows :



    when mouse over the icon button , the icon button zoomed in , and the other icon buttons are slightly changed they position .


    class ZoomButton : public QToolButton
    {
    ...
    void mousePressEvent(QEvent *event);
    ...
    };

    void ZoomButton::mousePressEvent(QEvent *event)
    {
    ...zoomFunction(...)...
    }

    This is what l'm doing now , but failed .

    Can some one help please .
    Last edited by hiro; 29th June 2010 at 18:20.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Button Effects

    Override the buttons paint event.

  3. #3
    Join Date
    Mar 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Button Effects

    fatjuicymole , thanks for you advise.

    l will try this method .

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

    Default Re: Button Effects

    Hi ,

    Problem comes again .

    When mouse overed the button , these is no interact with each other .

    And l have no idea , how to solve it .


Similar Threads

  1. Graphic effects of QwtPlotPanner
    By mastupristi in forum Qwt
    Replies: 2
    Last Post: 2nd July 2019, 21:14
  2. Using StyleSheet Without Losing 3D Effects
    By metdos in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2009, 10:20
  3. Replies: 4
    Last Post: 19th February 2009, 16:56
  4. Prevent use of GUI Desktop Effects
    By codeslicer in forum Qt Programming
    Replies: 1
    Last Post: 14th February 2009, 09:16
  5. Text Effects
    By BigEd in forum Qt Programming
    Replies: 3
    Last Post: 26th January 2009, 08:58

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
  •  
Qt is a trademark of The Qt Company.