Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtGui/QAction: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

QtGui/QAction: No such file or directory

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 5.1k 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 Extensions
      • Unsolved