Results 1 to 2 of 2

Thread: Making QFrame hoverable

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    40
    Thanks
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Making QFrame hoverable

    It seems that my class derived from QFrame is not emitting proper signals used by stylesheets hover. I want it to display a frame, when I hover over it. When I changed my class (the stylesheet selector) just to QFrame, the labels inside my widgets responded to that. When I removed hover pseudoclass from the selector, my class also responded to this (all widgets had borders). Do you know how can I make QFrame derived class hoverable?

  2. #2
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Making QFrame hoverable

    Hi,

    Did you try the "Descendant Selector", like:

    QFrame YourClass

    Matches all instances of YourClass that are descendants (children, grandchildren, etc.) of a QFrame.
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

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.