Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Cannot inlcude includes ??
Qt 6.12 LTS is out! See what's new in the release blog

Cannot inlcude includes ??

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 747 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • A Anonymous_Banned275

      This post is deleted!

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

      @AnneRanch
      The warnings tell you despite the #includes it doesn't know what class MainWindow is. That in turn comes from the banner message at the top, telling you the code "could not parse" some included file(s), for whatever reason.

      Either you have some error in one of the two #included files (maybe the Show Details button would tell.)

      Or, if you have upgraded to Ubuntu 20.04 recently(?), the version of clang --- used for Creator's Code Model --- supplied with the OS is not up-to-date enough for Creator. You will have clang 8, but you need clang 9. I think the command is sudo apt install clang-9, then exit & re-enter Creator and all will be good.

      1 Reply Last reply
      2
      • Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Just a small issue in the code model or in mainwindow.h - tooling problem.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        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
        • Unsolved