Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. No member named 'addAction' in 'QWidget'

No member named 'addAction' in 'QWidget'

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.0k 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.
  • G Offline
    G Offline
    gausslee
    wrote on last edited by
    #1

    I downloaded Qt package including Qt Creator from the official website and started to create a simple project with mainwindow.cpp, mainwindow.h and mainwindow.ui in. Then I hit the build button. It pops out the same errors:

    qmenu.h:86:20: error: no member named 'addAction' in 'QWidget'

    This error seems to point to the file below with the error line

    Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qmenubar.h:71:20: error: no member named 'addAction' in 'QWidget'
    using QWidget::addAction;

    Could somebody tell me what is going on here? I use the cmake to do the same process, the same error pops out, is it a bug or not?

    PLUS: I am using Qt Creator on MAC OS Mavericks.

    Cheers,

    Gauss

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you show your code related to QAction ?

      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

      • Login

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