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. moc'ing a file in vs2017 from custom directory
Forum Updated to NodeBB v4.3 + New Features

moc'ing a file in vs2017 from custom directory

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 442 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.
  • U Offline
    U Offline
    user4592357
    wrote on last edited by user4592357
    #1

    so i created a new qt gui project in vs2017.
    it creates a default MainWindow.h/cpp files, main.cpp.

    i put the main window files in a new directory (./src/gui) and now the moc_MainWindow.cpp tries to include ../../MainWindow.h (since the force include in project settings is set to ../../%(Filename)%(Extension)). however, the files isn't there anymore.

    if i specify the path as ../../src/gui/%(Filename)%(Extension) manually, it works. but i don't wanna do this because i have other directories; i don't wanna always "scan" the directories for new qt files.

    any suggestions?

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

      Hi,

      How are you managing the project ? Directly in VS2017 ? Using a .pro file ?

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

      U 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        How are you managing the project ? Directly in VS2017 ? Using a .pro file ?

        U Offline
        U Offline
        user4592357
        wrote on last edited by user4592357
        #3
        This post is deleted!
        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