c++ - Don't allow to maximize/show the application in QML -


i have application in qml/c++ shouldn't able maximized/showed user. should stay minimized whole time , when receives message server should maximize itself. possible in qml? looking everywhere , not able find similar issue.

you can start window window.hidden flag , show when signal received. simple example:

import qtquick 2.3 import qtquick.window 2.2  window {     id:  mainwindow     visibility: window.hidden     width: 400     height: 300      text {         text: qstr("hello world")         anchors.centerin: parent     }          timer {             id: timer             interval: 5000             ontriggered: {                 console.log("signal received");                 mainwindow.visibility = window.maximized             }         }         component.oncompleted: {             console.log("window created");             timer.running = true;         }     } } 

pay attention - havn't test code in qml viewer, start window anyway although qml window hidden


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -