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. Qt interface and signals?
Forum Updated to NodeBB v4.3 + New Features

Qt interface and signals?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt 5.6
2 Posts 2 Posters 1.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.
  • A Offline
    A Offline
    Alain38 0
    wrote on last edited by
    #1

    Hi,
    I'm currently investigating the usage of the QPluginLoader for an application. So, I'm analyzing the example delivered with Qt. My problem is that I need to declare Qt signals in my interfaces. For this, I have found a solution on Internet. The post I found explains that the interface must have a function
    "QObject * asQObject()" that every implementations must define. And this function is used for connections. The post also shows, in fact, a double declaration of the signal. First it is declard in the interface class. Then it is declared again in the implementation (I suppose that this second declaration is for the moc).

    As this is an old (2013) post, and as I find this solution quite complex, I did not if this solution is still "the normal one". If there is a better solution for Qt 5.6 I would appreciate to have a link on it.

    Thanks for your help.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      http://doc.qt.io/qt-5/plugins-howto.html#the-low-level-api-extending-qt-applications

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      • Login

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