[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!



  • 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.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.