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. Help with this error no such signal
Forum Updated to NodeBB v4.3 + New Features

Help with this error no such signal

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 633 Views 2 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.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by kshegunov
    #1

    Hi i am trying to connect this signal with this slot:

    connect(manager,SIGNAL(finished(QXmppTransferJob*) ),this,SLOT(transferenciaCompleta(QXmppTransferJob *)));
    

    The code:

    void MainWindow::transferenciaCompleta(QXmppTransferJob *transferencia)
    {
    if(transferencia->direction() == QXmppTransferJob::IncomingDirection)
    {
    if(transferencia->fileInfo().name() == "|@|captura|@|")
    {
    emit procesar(datos);
    }
    else
    {
    if(transferencia->fileInfo().name() == "|@|mini|@|")
    {
    QPixmap imagen;
    imagen.loadFromData(bufferMini.buffer());
    ventana.labelMiniatura()->setPixmap(imagen);
    ventana.rutaArchivo = "";
    ventana.barraProgresoTransferencia()->setValue(0);
    bufferMini.close();
    }
    else
    {
    if(transferencia->fileInfo().name() == "|@|webcam|@|")
    {
    QPixmap imagen;
    imagen.loadFromData(bufferWebcam.buffer());
    webcam.imagenWebcam()->setPixmap(imagen);
    if (webcam.guardarAutomaticamente()->isChecked())
    {
    QString capGuarda;
    this->numCapturas++;
    capGuarda.setNum(this->numCapturas);
    QFile guardar;
    guardar.setFileName(capGuarda + ".jpg");
    guardar.open(QFile::WriteOnly);
    guardar.write(bufferWebcam.buffer());
    guardar.close();
    }
    if(webcam.capturasAutomaticas()->isChecked())
    {
    webcam.capturar();
    }
    bufferWebcam.close();
    }
    else
    {
    archivoRecibido->close();
    delete archivoRecibido;
    }
    }
    }
    }
    }
    

    Error:

    QObject::connect: No such signal QXmppTransferManager::finished(QXmppTransferJob*)
    QObject::connect: (receiver name: 'MainWindow')
    QThread: Destroyed while thread is still running
    

    Thanks in advance.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      According to this documentation from internet the signal is called jobFinished

      So changing to

      connect(manager,SIGNAL(jobFinished(QXmppTransferJob*) ),this,SLOT(transferenciaCompleta(QXmppTransferJob *)));
      

      should work, when I caught the recent documentation through Google.

      PS: you are using a Qt based library, which is actually not part of Qt itself.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        BTW: You can find such problems already at compile-time by using the new signals and slots syntax.

        1 Reply Last reply
        3

        • Login

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