Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Project Dependencies
Qt 6.12 LTS is out! See what's new in the release blog

Project Dependencies

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 456 Views 1 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by ODБOï
    #1

    Hi,
    My project uses QtOpcUa. How to include all opcua Dependencies in conditional way ? , to be able to compile that project with another qt version that is not linked with qtopcua

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

      Hi
      You mean to conditionally have
      QT += opcua
      in the pro file and

      also be able to turn on/off
      #include <QtOpcUa>

      around in your app ?

      I use the following construct

      DEFINES += USEIT

      contains(DEFINES, USEIT) {
      QT += opcua
      }

      and you can conditioally use the include too. maybe with a define you set in .pro file so its
      all controled with one key in .pro file

      ODБOïO 1 Reply Last reply
      4
      • mrjjM mrjj

        Hi
        You mean to conditionally have
        QT += opcua
        in the pro file and

        also be able to turn on/off
        #include <QtOpcUa>

        around in your app ?

        I use the following construct

        DEFINES += USEIT

        contains(DEFINES, USEIT) {
        QT += opcua
        }

        and you can conditioally use the include too. maybe with a define you set in .pro file so its
        all controled with one key in .pro file

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        @mrjj hi
        thank you very much, i will try right now.

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