Results 1 to 3 of 3

Thread: QPushButton Red to Green and Green to Red Question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QPushButton Red to Green and Green to Red Question

    Yes, use the :pressed pseudo-state.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 86 Times in 81 Posts

    Default Re: QPushButton Red to Green and Green to Red Question

    Quote Originally Posted by wysota View Post
    Yes, use the :pressed pseudo-state.
    I think :checked pseudo-state is better because the :pressed pseudo-state is on when the mouse button is pressen on the button.
    Last edited by wysota; 28th July 2009 at 08:11.
    A camel can go 14 days without drink,
    I can't!!!

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.