Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    [Solved] The neatest way to import an example?

    General and Desktop
    2
    4
    939
    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.
    • C
      CodaxX last edited by

      Is there some quick way to import examples in Qt without having to modify the build folders etc manually?

      For instance I just tried to import the serial port example by copying the example folder to another location.
      After a while it became obvious that the build folder was the same as the location from where I copied the example.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        If you copied the example after having opened it with Qt Creator there's a file called yourproject.pro.user. This file contains the project setup. So you have two choices:

        close the project, delete the file, re-open the project and reconfigure it

        go in the project panel and modify the setup

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • C
          CodaxX last edited by

          Seems like that does the trick, thank you!

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            You're welcome !

            Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

            Happy coding !

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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