Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can I include another UI project as precompiled files?
Forum Updated to NodeBB v4.3 + New Features

Can I include another UI project as precompiled files?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 292 Views 2 Watching
  • 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.
  • ademmlerA Offline
    ademmlerA Offline
    ademmler
    wrote on last edited by
    #1

    I am wondering if I can include an exiting UI Project into another one
    using some precompiled/compiled files instead of using an *.pri file and source code.

    I understood that I can create a library for that - but how to turn an existing
    UI application into a library than?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The short version is: extract all the classes you use into a library and in your application project you just keep the main.cpp file and link to the library you created.

      If you want to keep all of that in a single project use the SUBDIRS template.

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

      ademmlerA 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        The short version is: extract all the classes you use into a library and in your application project you just keep the main.cpp file and link to the library you created.

        If you want to keep all of that in a single project use the SUBDIRS template.

        ademmlerA Offline
        ademmlerA Offline
        ademmler
        wrote on last edited by
        #3

        @SGaist thx for your response. I will investigate more into this following your advice.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved