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. How to access the Qt C++ project in Qt test project
Forum Updated to NodeBB v4.3 + New Features

How to access the Qt C++ project in Qt test project

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 192 Views
  • 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.
  • S Offline
    S Offline
    shravan_121
    wrote on last edited by
    #1

    How to test the existing Qt C++ project code with Qt test both are sub-directories of a sub-directory project created to have both test project and C++ project in it.I dint know how to access the main C++ project code from test project.Is there any include statement or any linking process between the two project

    jsulmJ 1 Reply Last reply
    0
    • S shravan_121

      How to test the existing Qt C++ project code with Qt test both are sub-directories of a sub-directory project created to have both test project and C++ project in it.I dint know how to access the main C++ project code from test project.Is there any include statement or any linking process between the two project

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @shravan_121 Simply add cpp files you want to test to SOURCES in your test pro file (you will probably need to add header files to HEADERS also).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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