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. Activeqt events problem
Forum Updated to NodeBB v4.3 + New Features

Activeqt events problem

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 5.5k 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.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi everyone
    i have dll,i use dumpcpp to generate class files and then i use this dll
    it works fine except its events
    i know it has event name "signal1()"
    i use this code
    @connect(x,SIGNAL(signal1()),this,SLOT(myslot()));@
    and when i see my debug output it doesn't get me error about sender or reciever is missing
    but it doe'snt run my slot name myslot()
    how can i fix this?

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      this highly depends in the implementation of x ;-)

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kitten
        wrote on last edited by
        #3

        i generate the x class with dumpcpp
        it hast this line on it ,i think the problem it about this line
        @// skipping event interface _IZKEMEvents@
        how can i make dumpcpp to not skip events?

        www.kitten.mihanblog.com

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kitten
          wrote on last edited by
          #4

          and i use this code but it does'nt have any differences
          @connect(x,SIGNAL(signal(QString,int,void*)),this,SLOT(myslot(QString,int,void*)));@
          it does'nt get me error about sender or reciever is missing

          www.kitten.mihanblog.com

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kitten
            wrote on last edited by
            #5

            should i use Idispatch?how?

            www.kitten.mihanblog.com

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kitten
              wrote on last edited by
              #6

              i have change it to not to use dumppcpp generated file and i writes manually
              this is my program:
              @container = new QAxWidget(this);
              container->setAttribute(Qt::WA_DeleteOnClose);
              container->setControl("{00853a19-bd51-419b-9269-2dabe57eb61f}");
              container->setObjectName(container->windowTitle());
              connect(container,SIGNAL(OnFinger()),this,SLOT(doit2()));
              connect(container,SIGNAL(OnConnected()),this,SLOT(doit2()));
              connect(container,SIGNAL(OnVerify(int)),this,SLOT(doit(int)));
              connect(pushButton,SIGNAL(clicked()),this,SLOT(doit2()));
              container->dynamicCall("Connect_Com(int,int,int)",1,1,115200);
              container->dynamicCall("RegEvent(int,int)",1,65535);@
              but now it only emit one signal name OnConnected()
              and other siganls doesn't emitted
              what should i do?

              www.kitten.mihanblog.com

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vkjr
                wrote on last edited by
                #7

                I'm generating class with dumpcpp and it also has "skipping event interface" line. But when I'm using signal by name it works fine. Just make sure you are specifying correct signal name.

                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