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. Mobile and Embedded
  4. QtGui/QAction: No such file or directory
Qt 6.12 LTS is out! See what's new in the release blog

QtGui/QAction: No such file or directory

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 5.5k 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    In file included from ../../../Desktop/johorTrain/mainwindow.cpp:2:0:
    QtGui/QAction: No such file or directory

    The file is running fine this morning, suddenly it prompts an error in the afternoon. I don't remember making any amendment. Any help is appreciated

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Maybe you have switched the Qt version in Kit settings?

      In Qt 4, QAction is part of QtGui module. In Qt 5, it is part of QtWidgets module. Best option is not to specify the module name when including the header.

      (Z(:^

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