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. QtWidgets/QAction: No such file or directory
Forum Update on Monday, May 27th 2025

QtWidgets/QAction: No such file or directory

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 413 Views
  • 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.
  • W Offline
    W Offline
    Wreet
    wrote on last edited by
    #1

    In ui_mainwindow.h file, #include <QtWidgets/QAction> does not work. I also substituted "QtWidgets/QAction" as "QAction". But that also does not work. How can the error be fixed?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      this file is normally generated automatically. No need to change anything unless you create it manually. Do you add widgets to QT in your pro?

      something like this?
      QT += core gui widgets

      1 Reply Last reply
      4

      • Login

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