Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Building Qt5 plugin via CMake

Building Qt5 plugin via CMake

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 507 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
    grahamm
    wrote on last edited by A Former User
    #1

    Hi all,

    I'm porting our (large and complicated) application from Qt4 to Qt5. It involves building Qt plugins and we use CMake as the makefile generator. All of the plugins are derived from QDesignerCustomWidgetInterface. I'm having no success with this. I tried to follow as much of the AnalogClock example as possible, but the QMake bits aren't relevant to me. I'd like to know what the CMake equivalents are.

    When I try, I get an error when moc'cing the headder file: qtxbuttonplugin.h(10): error : Undefined interface. This is on the Q_INTERFACES() line. Can anybody please tell me what I need to do to fix this. Better yet, please point me to an example of building a plugin with CMake.

    I'm using Qt 5.5.1 with CMake 3.6.3. We use Visual Studio 2013 on Windows and gcc 4.8 on Linux.

    Thanks in advance,
    Graham

    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