Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT 6.3 Project with CMake and Visual Studio cannot open source file ui_mainWindow.h
Forum Updated to NodeBB v4.3 + New Features

QT 6.3 Project with CMake and Visual Studio cannot open source file ui_mainWindow.h

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 644 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.
  • 0 Offline
    0 Offline
    0verEngineer
    wrote on last edited by
    #1

    Hello,

    i have a qt 6.3 Project using CMake and i would like to use Visual Studio or CLion instead of QT Creator for various reasons.
    But i have the Problem that Visual Studio is complaining that it cannot find the ui_mainWindow.h file...
    It builds just fine so the file gets created and used but the editor does not find it.
    I have tried all solutions i found online and i do not know how to proceed.

    jsulmJ 1 Reply Last reply
    0
    • 0 0verEngineer

      Hello,

      i have a qt 6.3 Project using CMake and i would like to use Visual Studio or CLion instead of QT Creator for various reasons.
      But i have the Problem that Visual Studio is complaining that it cannot find the ui_mainWindow.h file...
      It builds just fine so the file gets created and used but the editor does not find it.
      I have tried all solutions i found online and i do not know how to proceed.

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

      @0verEngineer said in QT 6.3 Project with CMake and Visual Studio cannot open source file ui_mainWindow.h:

      but the editor does not find it

      The file should be in the build folder.
      Why do you want to open it? You should not change anything in generated files.

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

      1 Reply Last reply
      0
      • 0 Offline
        0 Offline
        0verEngineer
        wrote on last edited by
        #3

        @jsulm said in QT 6.3 Project with CMake and Visual Studio cannot open source file ui_mainWindow.h:

        build

        The file is indeed where it has to be because the build works, i am talking about the non working include in mainWindow.cpp
        In QT Creator it works, in Visual Studio 2022 with the QT Extension it doesn't work

        I thought the QT Extension would handle this like QT Creator does.

        qt.png

        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