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. new project has lots of semantic error

new project has lots of semantic error

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 4 Posters 801 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.
  • G Offline
    G Offline
    ggnohope
    wrote on last edited by
    #1

    Re: Qt CMake Semantic Issue
    f5570ed8-991c-4f60-8486-5cb80013012b-image.png

    JonBJ 1 Reply Last reply
    0
    • G ggnohope

      Re: Qt CMake Semantic Issue
      f5570ed8-991c-4f60-8486-5cb80013012b-image.png

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

      @ggnohope
      Hello and welcome.

      Please state how your situation differs from the link you reference, where the reply was:

      @jsulm said in Qt CMake Semantic Issue:

      @qtcat Did you build your app?
      ui_mainwindow.h is a file which is generated during build. If it is not yet there (because you did not yet build), QtCreator will show this errors/warnings because it does not know what Ui::MainWindow, which comes from that generated file, is.

      J 1 Reply Last reply
      2
      • JonBJ JonB

        @ggnohope
        Hello and welcome.

        Please state how your situation differs from the link you reference, where the reply was:

        @jsulm said in Qt CMake Semantic Issue:

        @qtcat Did you build your app?
        ui_mainwindow.h is a file which is generated during build. If it is not yet there (because you did not yet build), QtCreator will show this errors/warnings because it does not know what Ui::MainWindow, which comes from that generated file, is.

        J Offline
        J Offline
        JRaith
        wrote on last edited by JRaith
        #3

        @JonB I'm having a similar problem with CMake using Qt6. I can't get the program to run and i can't get it past this point, since the ui_mainwindow.h file cannot be found.

        44d83792-c994-4182-b6fd-dec3faee76fd-image.png

        Please assist if possible. I have gone through the existing threads on this issue and none of the previous solutions or suggestions have worked.

        JonBJ C 2 Replies Last reply
        0
        • J JRaith

          @JonB I'm having a similar problem with CMake using Qt6. I can't get the program to run and i can't get it past this point, since the ui_mainwindow.h file cannot be found.

          44d83792-c994-4182-b6fd-dec3faee76fd-image.png

          Please assist if possible. I have gone through the existing threads on this issue and none of the previous solutions or suggestions have worked.

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

          @JRaith
          My previous reply states what the problem is. You either have not done a build which would generate the ui_....h file from the .ui file, or from what I can see you don't even seem to have any .ui file so I have no idea where you got the code from or expect it to work if that is the case.

          1 Reply Last reply
          1
          • J JRaith

            @JonB I'm having a similar problem with CMake using Qt6. I can't get the program to run and i can't get it past this point, since the ui_mainwindow.h file cannot be found.

            44d83792-c994-4182-b6fd-dec3faee76fd-image.png

            Please assist if possible. I have gone through the existing threads on this issue and none of the previous solutions or suggestions have worked.

            C Offline
            C Offline
            CPPUIX
            wrote on last edited by
            #5

            @JRaith The easiest solution you could go with, is to create a new widgets project, and just get the code you need from this project to replicate it.

            And if this is not your original code, you missed getting a ui file, most likely called mainwindow.ui.

            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