Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    2
    3
    1770
    Loading More Posts
    • 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.
    • L
      LucaUWF last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • D
        dbzhang800 last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • L
          LucaUWF last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post