Video Frame disappears from QMediaPlayer on mouse over with custom skin



  • Hi, I am using Qt 5.5. And am working on using a custom skin over the video program I have. However when using the custom skin (.qrc, .qss files, resources etc) if my mouse passes over the QMediaPlayer itself the current frame disappears, and the video continues playing normally a couple frames later.
    I have tried several different random skins I have found around the internet, they all do the same thing.

    So is there anything I can do to solve this other than creating a class which inherits from QMediaPlayer and rewriting, some of the events?



  • I figured out a solution to my problem. The removing the below qss from the style sheet fixed the issue.

    QWidget:item:hover
    {
        background-color: #78879b;
        color: black;
    }
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.