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. How do I include QMetaObjectBuilder in my QT 5.12 project?
QtWS25 Last Chance

How do I include QMetaObjectBuilder in my QT 5.12 project?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmetaobject
3 Posts 2 Posters 712 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.
  • F Offline
    F Offline
    feistykittykat
    wrote on last edited by feistykittykat
    #1

    Hey folks, hopefully this has a simple answer. Basically, I'm porting in some code that uses the QMetaObjectBuilder class, and for the life of me I can't figure out which header contains it. I've tried

    <private/qmetaobjectbuilder_p.h>
    

    and various iterations on that, but no dice.

    F 1 Reply Last reply
    0
    • F feistykittykat

      Hey folks, hopefully this has a simple answer. Basically, I'm porting in some code that uses the QMetaObjectBuilder class, and for the life of me I can't figure out which header contains it. I've tried

      <private/qmetaobjectbuilder_p.h>
      

      and various iterations on that, but no dice.

      F Offline
      F Offline
      feistykittykat
      wrote on last edited by feistykittykat
      #2

      @feistykittykat I found it with

      #include <QtCore\5.12.2\QtCore\private\qmetaobjectbuilder_p.h>
      

      but I'm not sure that this is the right way to go, since now I'm getting an error from that file that

      #include <QtCore/private/qglobal_p.h>
      

      cannot be found. Is there a less janky way of including this successfully?

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

        Hi,

        AFAIR, you need to add QT += core-private to your .pro file.

        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
        1

        • Login

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