Results 1 to 4 of 4

Thread: QML program doesn't minimize

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2013
    Posts
    3
    Qt products
    Qt5

    Default QML program doesn't minimize

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QML program doesn't minimize

    Is your 5.1.0 built against ANGLE or OpenGL?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2013
    Posts
    3
    Qt products
    Qt5

    Default Re: QML program doesn't minimize

    Quote Originally Posted by wysota View Post
    Is your 5.1.0 built against ANGLE or OpenGL?
    I am using Qt 5.1 MinGW (and also 5.0.2 and 5.1.1), so OpenGL. The OS is Win7 x64.

  4. #4
    Join Date
    Oct 2013
    Posts
    3
    Qt products
    Qt5

    Default Re: QML program doesn't minimize

    Can anyone trying deploying the above program and test it with Qt 5.1? I'd really like to know if it's my mistake (most likely it is) or if it's a bug in Qt.

Similar Threads

  1. Replies: 0
    Last Post: 8th November 2012, 17:09
  2. Replies: 0
    Last Post: 28th April 2011, 18:34
  3. Replies: 1
    Last Post: 15th August 2010, 11:13
  4. program doesn't seem to free memory, linux
    By JeanC in forum Qt Programming
    Replies: 5
    Last Post: 1st September 2008, 12:06
  5. QHttp simple program doesn't work
    By johncharlesb in forum Qt Programming
    Replies: 0
    Last Post: 4th April 2008, 04:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.