1

I downloaded Qt 5.4 and created Qt Quick application with Qt Quick Controls 1.3.

I didn't change anything in code, just built it (as release). Then I copied .exe to another folder, added all the .dll files I needed and when I launched my program there was no window, just the program process running in the Task manager.

However, I can launch program which uses QtQuick 1.1.

How can I fix it?

Thanks.

Here is an image for some more explanation:

enter image description here

BaCaRoZzo
  • 7,502
  • 6
  • 51
  • 82
  • possible duplicate of [Deploy Qt5 QML application](http://stackoverflow.com/questions/25049116/deploy-qt5-qml-application) – BaCaRoZzo Apr 11 '15 at 07:23
  • 1
    As stated by others you are missing the platform plugin files. Just follow [this guide](http://wiki.qt.io/Deploy_an_Application_on_Windows). – BaCaRoZzo Apr 11 '15 at 07:24

2 Answers2

1

Try to deploy your application using The Windows Deployment Tool which copies all DLL and other files necessary for deployment alongside your application executable automatically.

The Windows Deployment Tool could be found in QTDIR/bin/windeployqt.exe

Open your command prompt and add the path to your Qt directory and it's bin folder to the PATH variable like :

set PATH= path\to\Qt\bin

Next run the windows deployment tool with your application path as the argument:

windeployqt.exe  <path-to-app-binary>

This way you make sure that the deployed application would work on any computer and you have included whatever necessary.

Nejat
  • 31,784
  • 12
  • 106
  • 138
0

Sounds like you are missing the platform plugin. It should be in the folder of the executable, in a platforms subfolder. That's why you aren't getting a window - the runtime fails to load the platform support plugin. On windows that should be a qwindows.dll file.

dtech
  • 47,916
  • 17
  • 112
  • 190