Call showNormal to restore the minimized state of QDeclarativeView causing the QML items losing focus

  • I created a qml file with several buttons and edit , then use QDeclarativeView subclass to load the qml file, I provide the minimized option ,
    and calling showMinimized() to make it minimized , while I call showNormal to restore it again , all the buttons and edits lost focus , I don't know why , the view subclass's constructor is here

    QPalette palette;
    fAbsolutePath = QDir::currentPath();
    fDeclarativeContext = rootContext();

    why ? someone could tell me why ?

    [EDIT: code formatting, please wrap in @-tags, Volker]

  • Looks like related to "QML: rendering problems after minimizing frameless window":

  • thanks , Vijay , I think it is the same , I will try that , thanks very much

Log in to reply

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