Hello, I have a small fullscreen program which doesn't minimize properly. I can get the program to minimize in Qt 5.0.2 but not in 5.1.0. Everything is fine in Qt Creator, yet when I deploy 5.0.2 works, but 5.1.0 doesn’t.

I have noticed that 5.0.2 requires d3dcompiler_43.dll but 5.1.0 doesn’t, and the 5.1.0\mingw48_32\bin folder doesn’t contain that file at all, and it’s also missing libEGL.dll and GLESv2.dll which were present in 5.0.2. I found them in the Tools\QtCreator\bin folder.

I have a small program which shows what happens, but you will have to deploy it first:

Qt Code:
  1. import QtQuick 2.0
  2.  
  3. Rectangle {
  4. width: 360
  5. height: 360
  6. Text {
  7. id: minText
  8. text: qsTr("Minimize")
  9. anchors.centerIn: parent
  10. MouseArea {
  11. anchors.fill: parent
  12. onClicked: {
  13. QtQuick2ApplicationViewer.showMinimized();
  14. }
  15. }
  16. }
  17.  
  18.  
  19. Text {
  20. id: quitText
  21. text: qsTr("Quit")
  22. anchors.left: minText.right
  23. anchors.leftMargin: 10
  24. anchors.verticalCenter: minText.verticalCenter
  25. MouseArea {
  26. anchors.fill: parent
  27. onClicked: {
  28. Qt.quit();
  29. }
  30. }
  31. }
  32.  
  33. }
To copy to clipboard, switch view to plain text mode 

Here’s the main.cpp file:

Qt Code:
  1. #include <QtGui/QGuiApplication>
  2. #include "qtquick2applicationviewer.h"
  3.  
  4. #include <QQmlContext>
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. QGuiApplication app(argc, argv);
  9.  
  10. QtQuick2ApplicationViewer viewer;
  11. viewer.rootContext()->setContextProperty("QtQuick2ApplicationViewer", &viewer);
  12. viewer.setMainQmlFile(QStringLiteral("qml/MinimizeTest/main.qml"));
  13. viewer.showFullScreen();
  14.  
  15. return app.exec();
  16. }
To copy to clipboard, switch view to plain text mode 

This only happens if the program is set to showFullScreen(), but doesn’t happen if showExpanded() is used.