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. No Documentation available Error : #include "./ui_widget.h"
Forum Updated to NodeBB v4.3 + New Features

No Documentation available Error : #include "./ui_widget.h"

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 211 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.
  • A Offline
    A Offline
    Anurag Singh
    wrote on 12 Apr 2023, 16:50 last edited by Anurag Singh 4 Dec 2023, 16:51
    #1

    Screenshot 2023-04-12 221555.png

    How can I resolve it? Can anyone tell?

    J 1 Reply Last reply 12 Apr 2023, 17:14
    0
    • A Anurag Singh
      12 Apr 2023, 16:50

      Screenshot 2023-04-12 221555.png

      How can I resolve it? Can anyone tell?

      J Offline
      J Offline
      JonB
      wrote on 12 Apr 2023, 17:14 last edited by
      #2

      @Anurag-Singh
      Clean your project and rebuild from scratch. It should run uic on your .ui file to regenerate ui_....h file.

      Normally that ui_....h file should be generated into the build output directory, where the object and executable files go. If you have a ui_...h file lying around in your source directory that could be a problem.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 12 Apr 2023, 18:15 last edited by SGaist 4 Dec 2023, 18:16
        #3

        Hi and welcome to devnet,

        This is a generated file so unless you are building in your sources (wrong thing to do, don't do it) the file is not in the current folder.

        Remove the "./" from the include line.

        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

        1/3

        12 Apr 2023, 16:50

        • Login

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