March 28, 2012

LucaUWF LucaUWF
Lab Rat
2 posts

[SOLVED] Transitions example displays an empty window when launched outside of QTCreator

 

Hi,

Very new to QTCreator so I ran through the Qt Quick and Qt Widget examples.
These both ran fine within QtCreator.

I copied the .exes to the bin folders within the sdk to run them outside of the IDE (just to save me time copying dlls to the separate application directories) I found that the Widget application (FindText) worked fine but the Transitions example just displayed an empty window with the title Transitions rather than the animated icon.

Can anyone suggest what might be going wrong?

I am running Windows XP and using Qt 4.74 32 bit.

Thanks!

2 replies

March 29, 2012

1+1=2 1+1=2
Hobby Entomologist
309 posts

Make sure all other files used by your application can be found at running time, such as *.qml *.qm etc.

By the way, you had better add the bin path of your SDK to your system’s environment PATH to avoid coping dll or exe files.

March 29, 2012

LucaUWF LucaUWF
Lab Rat
2 posts

Moving the qml directory into the directory where the exe resides did the trick.

I then followed your advice and added to the Path environment variable the following:
C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\bin this led to procedural entry errors…

Modifying this path to the msvc2008\bin and rebuilding for 2008 targets did however work.

Thanks for the help.

 
  ‹‹ Compiling on MacOSX      [self solved]Text lose highlight ››

You must log in to post a reply. Not a member yet? Register here!