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. AUTOUIC

AUTOUIC

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 2.1k 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.
  • DWayneD Offline
    DWayneD Offline
    DWayne
    wrote on last edited by DWayne
    #1

    Hello,

    i have a simple application that has the following structure:

    test/CMakeLists.txt
    test/include/debug.h
    test/src/main.cpp
    test/ui/debug.ui

    Qt 5.13.2, Visual Studio 2017 15.9.12, CMake 3.16.0-rc3

    How do i write the QT5_WRAP_UI() to account for the directory structure? This is the current error I get from CMake:

    3>
    3>AutoUic error
    3>-------------
    3>"SRC:/test/include/debug.h"
    3>includes the uic file "ui_debug.h",
    3>but the user interface file "debug.ui"
    3>could not be found in the following directories
    3>  "SRC:/test/include"
    3>
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      A quick search turned up CMAKE_AUTOUIC_SEARCH_PATHS.

      Hope it helps

      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
      2
      • DWayneD Offline
        DWayneD Offline
        DWayne
        wrote on last edited by
        #3

        oh wow! i missed that. thank you!

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SamWOO
          wrote on last edited by
          #4

          I have exactly same problem, how to solve? thx.

          SGaistS 1 Reply Last reply
          0
          • S SamWOO

            I have exactly same problem, how to solve? thx.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @SamWOO Hi and welcome to devnet,

            Did you read the documentation I linked ?

            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
            0

            • Login

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