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. Build fails as ui_mainwindow.h not found
Forum Updated to NodeBB v4.3 + New Features

Build fails as ui_mainwindow.h not found

Scheduled Pinned Locked Moved Solved General and Desktop
build failed
26 Posts 6 Posters 24.9k 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.
  • dheerendraD dheerendra

    as @jsulm already suggested, you better install the new version and try. My suspect is that you have installed some other software which has old Qt library in path. This must be causing the issue.

    T Offline
    T Offline
    Tanuja
    wrote on last edited by
    #21

    @dheerendra
    I will try to install the new version and check.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tanuja
      wrote on last edited by
      #22

      It's done
      I installed it again and now its building perfectly

      1 Reply Last reply
      1
      • R Offline
        R Offline
        ru10
        wrote on last edited by
        #23

        Hi ,
        Just yesterday I installed QT 6.3.2. When I started new project in Qt creator, .pro or make file is not generated ...And also getting ui_mainwindow.h not found.

        Please suggest on how to create .pro file.
        Thank you.

        jsulmJ 1 Reply Last reply
        0
        • R ru10

          Hi ,
          Just yesterday I installed QT 6.3.2. When I started new project in Qt creator, .pro or make file is not generated ...And also getting ui_mainwindow.h not found.

          Please suggest on how to create .pro file.
          Thank you.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #24

          @ru10 Qt6 uses CMake instead of QMake (thoufh you still can use QMake), so look for CMakeLists.txt file.
          "And also getting ui_mainwindow.h not found" - this file is generated when you build your project, you should not edit it as your changes will disappear next time this file is generated.

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

          R 1 Reply Last reply
          2
          • jsulmJ jsulm

            @ru10 Qt6 uses CMake instead of QMake (thoufh you still can use QMake), so look for CMakeLists.txt file.
            "And also getting ui_mainwindow.h not found" - this file is generated when you build your project, you should not edit it as your changes will disappear next time this file is generated.

            R Offline
            R Offline
            ru10
            wrote on last edited by
            #25

            @jsulm Thank you.
            Yes i do have CmakeLists.txt file.
            c77ce21c-4ea7-4e7d-9544-96a13b5876aa-image.png

            "How to fix ui_mainwindow.h file not found"?

            JonBJ 1 Reply Last reply
            0
            • R ru10

              @jsulm Thank you.
              Yes i do have CmakeLists.txt file.
              c77ce21c-4ea7-4e7d-9544-96a13b5876aa-image.png

              "How to fix ui_mainwindow.h file not found"?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #26

              @ru10 said in Build fails as ui_mainwindow.h not found:

              "How to fix ui_mainwindow.h file not found"?

              @jsulm said in Build fails as ui_mainwindow.h not found:

              "And also getting ui_mainwindow.h not found" - this file is generated when you build your project

              Have you tried building your project? You will get these messages until you do.....

              1 Reply Last reply
              1

              • Login

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