Once you create a project via Qt Creator, how do you run it outside of Creator



  • I'm still learning the basics of Qt Creator via videos. I'd like to get a jump-start and find out how to run a project that I've created with Creator outside of Creator? What are the steps to do this? What is the final executable called? How many files will be involved with the final executable? How many files do I have to protect to keep the final product? Can I edit any of these files, and if so how can I edit them?

    Can this be done in more than one way?

    What are the options in doing this? I.E.: Do I have ways to tweek the final project during the deployment?

    Is one technique more reliable than others? Which way of doing this is better?

    Can you give me detailed information on this topic? What are the steps to accomplish this?

    Thank you,


  • Lifetime Qt Champion

    Hi,

    That's a question that has been asked many time already. You have to follow the deployment guide in Qt's documentation for the platform you are targeting. There are helper tools existing for macOS and Windows provided by Qt and an independent one for Linux.

    So please start by giving more information like the version of Qt you are using, the platform you are going to deploy on, the compiler you are using etc.



  • @SGaist I'm very anxious to get started and can't wait. I don't have the specifics yet. I'm told the platform will definitively be on a Linux computer with probably Qt 4 using C++!

    What do I do?

    Thanks,


  • Lifetime Qt Champion

    Qt 4 ? You know that you shouldn't use that for new project as it has reached end of life ?

    In any case, better have some more information about your project otherwise it's only going to be speculations.


  • Moderators

    @Mike456 said in Once you create a project via Qt Creator, how do you run it outside of Creator:

    I'm still learning the basics of Qt Creator via videos.

    Welcome!

    I'd like to get a jump-start and find out how to run a project that I've created with Creator outside of Creator?

    The process of running a program outside of Qt Creator is called "Deployment". Use this keyword; search this forum and the Qt documentation for information about "Deployment".

    Here's a page to get jump-start your journey: http://doc.qt.io/qt-5/deployment.html

    What are the steps to do this? What is the final executable called? How many files will be involved with the final executable? How many files do I have to protect to keep the final product? Can I edit any of these files, and if so how can I edit them?

    Can this be done in more than one way?

    What are the options in doing this? I.E.: Do I have ways to tweek the final project during the deployment?

    Is one technique more reliable than others? Which way of doing this is better?

    Can you give me detailed information on this topic? What are the steps to accomplish this?

    Please understand that we can't give you a list/recipe, especially when you can't give us any concrete details about your project. At this point, the only thing I'll say is this: Yes, there is more than one way to do deployment, and each have their own pros and cons. Different developers prefer different ways. What's "better" depends on your priorities.

    The best way to learn is to try it yourself. Read the link I gave you, research, and try to deploy a simple toy application. If you get stuck, come back with specific questions about what you're trying to accomplish.



  • @SGaist,

    @SGaist said in Once you create a project via Qt Creator, how do you run it outside of Creator:

    Qt 4 ? You know that you shouldn't use that for new project as it has reached end of life ?

    Can you specifically explain to me why Qt 5 is better than Qt4? Are you talking about Qt service?

    In any case, better have some more information about your project otherwise it's only going to be speculations.

    What specific kind of information?


  • Moderators

    @Mike456 said in Once you create a project via Qt Creator, how do you run it outside of Creator:

    Can you specifically explain to me why Qt 5 is better than Qt4? Are you talking about Qt service?

    Qt 4 reached End-of-Life status in December 2015. This means it is no longer supported -- it will not receive any new features, bug fixes, or security fixes.

    If someone finds a security vulnerability in Qt 4, that means they could attack any computer that runs Qt 4 software. The user of the software will have no protection because the flaw will never be fixed. In contrast, if such a vulnerability is found in a supported version of Qt 5, the vulnerability will be fixed urgently so that users cannot be attacked.

    If you find a bug in Qt 4 that affects your project, there is not much you can do about it -- you'll need to find your own workaround to the bug or patch Qt yourself. In contrast, if you find a bug in a supported version of Qt 5, you can file a bug report and there's a good chance it will be fixed.

    In any case, better have some more information about your project otherwise it's only going to be speculations.

    What specific kind of information?

    For starters: What is your development PC's OS? What is your deployment target's OS? Will the final product be released to customers, or is it for internal use only? How do you plan to maintain the project? Which features of Qt do you plan to use?

    Also, remember to start reading http://doc.qt.io/qt-5/deployment.html


Log in to reply
 

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