Results 1 to 17 of 17

Thread: QStyle button hover

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QStyle button hover

    They are flags. You should combine a set of flags by using OR operator:
    Qt Code:
    1. sob.state |= QStyle::State_MouseOver;
    To copy to clipboard, switch view to plain text mode 
    Notice what QStyleOption::initFrom() docs say.. It already initializes state so basically you overrode it with plain QStyle::State_MouseOver.
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:

    Apocalypse (30th March 2008)

Similar Threads

  1. question about button
    By narumi in forum Newbie
    Replies: 2
    Last Post: 21st January 2008, 05:44
  2. QTextBrowser and Hover
    By yogeshgokul in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2008, 11:18

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.