Minimizing frameless windows from the taskbar and show again, it will lead app to no reponse, is a bug?



  • Minimizing the frameless windows from the taskbar and show again, it will lead app to no reponse.
    Platform: win7 x86 desktop
    Below is test code base Qt Quick 1 Application(Built-in Elements)

    @main.qml

    import QtQuick 1.1

    Rectangle {
    id: root
    width: 400
    height: 300
    color: "#00000000"

    property string titleCloseSource: "uiResource/btn_close_n.png"
    
    Image {
        id: iconClose
        anchors.fill: parent
        source: root.titleCloseSource
    
        MouseArea {
            id: maClose
            hoverEnabled: true
            anchors.fill: parent
            onClicked: Qt.quit();
            onEntered: root.titleCloseSource = "uiResource/btn_close_p.png"
            onExited: root.titleCloseSource = "uiResource/btn_close_n.png"
            onPressed: root.titleCloseSource = "uiResource/btn_close_h.png"
        }
    }
    

    }@
    This is a Image will change source by mouse event.

    @main.cpp

    Q_DECL_EXPORT int main(int argc, char *argv[])
    {
    //...
    viewer.setMainQmlFile(QLatin1String("qml/main.qml"));

    //transparent
    viewer.setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowMinimizeButtonHint );
    viewer.setAttribute(Qt::WA_TranslucentBackground);
    viewer.setStyleSheet("background:transparent;");

    //...
    

    }@
    This is add WindowsFlags.

    When app running, the mouse event is working correct. And then minimizing frameless windows from the taskbar and show again, the Image not change source when mouse event.


Log in to reply
 

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