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. The drawback of signal/slots ?
Forum Updated to NodeBB v4.3 + New Features

The drawback of signal/slots ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
23 Posts 6 Posters 6.0k Views 4 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.
  • kshegunovK kshegunov

    @VincentLiu @stryga42

    qRegisterMetaType<Mat>();
    qRegisterMetaType<vector<Mat>>();
    

    should fix it, provided there's also:

    Q_DECLARE_METATYPE(Mat)
    Q_DECLARE_METATYPE(vector<Mat>)
    

    somewhere in the header(s).

    V Offline
    V Offline
    VincentLiu
    wrote on last edited by
    #21

    @kshegunov

    Thanks. Actually I did what you displayed, but it works until I use Qt:DirectConnection.

    kshegunovK 1 Reply Last reply
    0
    • V VincentLiu

      @kshegunov

      Thanks. Actually I did what you displayed, but it works until I use Qt:DirectConnection.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #22

      @VincentLiu said in The drawback of signal/slots ?:

      Actually I did what you displayed

      Not according to the snippet you posted. Bear in mind:

      qRegisterMetaType<Mat>();
      

      and

      qRegisterMetaType<Mat>("Mat");
      

      are different things in principle.

      Read and abide by the Qt Code of Conduct

      V 1 Reply Last reply
      0
      • kshegunovK kshegunov

        @VincentLiu said in The drawback of signal/slots ?:

        Actually I did what you displayed

        Not according to the snippet you posted. Bear in mind:

        qRegisterMetaType<Mat>();
        

        and

        qRegisterMetaType<Mat>("Mat");
        

        are different things in principle.

        V Offline
        V Offline
        VincentLiu
        wrote on last edited by
        #23

        @kshegunov Really !!! Thanks, I'll try it

        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