Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Module "Qt.labs.platform" is not installed in release
QtWS25 Last Chance

Module "Qt.labs.platform" is not installed in release

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qt.lab.platformrelease modeimport problem
5 Posts 5 Posters 4.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mafych
    wrote on last edited by
    #1

    Hi,
    I am using FileDialog from Qt.labs.platform 1.1 on win 10 in Qt creator, compilator I use is Desktop Qt 5.15.2. MinGW 64 bit.
    In the debug mode is working everthing fine but when I change to release mode I get following error in from the compilator:
    QQmlApplicationEngine failed to load component
    qrc:/main.qml:6:1: module "Qt.labs.platform" is not installed

    I tried thinks like clean and rebuild or restart the computer and also change the number of import version but nothing helps. Any ideas how to solve that, please?

    1 Reply Last reply
    1
    • N Offline
      N Offline
      nemo228
      wrote on last edited by
      #2

      Hi,
      I have same problem, could you tell me how to fix if you know

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ivan Kosik
        wrote on last edited by
        #3

        Check folder, where you are building your release (where *.exe is generated):
        does it contains some Qt's *.dll's?
        If yes: there is two ways to resolve your problem:

        1. Remove all Qt *.dll's and run your application from Qt Creator (then Qt Creator will take all Qt *.dll's from folder, where Qt is installed).
        2. Or add all needed Qt *.dll's with correct folder structure to folder with your release *.exe (to do it for Windows release use windeployqt tool: https://doc.qt.io/qt-6/windows-deployment.html )

        Why you have such error from the compilator?
        Because you have some Qt *.dll's in your release folder (beside the *.exe), but not all needed (e.g. you have only Qt6Core.dll). So Qt Creator will find this dll and will try to find other dll's in your release folder. Qt Creator will not check its installation directory to get dll's.
        But if you have no Qt *.dll's in your release folder, then Qt Creator will find them in its installation directory.

        1 Reply Last reply
        1
        • T Offline
          T Offline
          tcmLeap
          wrote on last edited by
          #4

          Hi Ivan Kosik,

          Thank you very much. My issue was solve when follow your method of remove all QT *.dll

          BRs

          1 Reply Last reply
          0
          • RokeJulianLockhartR Offline
            RokeJulianLockhartR Offline
            RokeJulianLockhart
            wrote on last edited by
            #5

            @Ivan-Kosik, did you write https://stackoverflow.com/a/69246490/9731176?

            When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

            1 Reply Last reply
            0
            • RokeJulianLockhartR RokeJulianLockhart referenced this topic on

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved