Results 1 to 3 of 3

Thread: Help with this error no such signal

  1. #1
    Join Date
    Sep 2016
    Posts
    78
    Thanked 1 Time in 1 Post
    Qt products
    Qt5

    Question Help with this error no such signal

    Hi i am trying to connect this signal with this slot:
    connect(manager,SIGNAL(finished(QXmppTransferJob*) ),this,SLOT(transferenciaCompleta(QXmppTransferJob *)));
    The code:
    Qt Code:
    1. void MainWindow::transferenciaCompleta(QXmppTransferJob *transferencia)
    2. {
    3. if(transferencia->direction() == QXmppTransferJob::IncomingDirection)
    4. {
    5. if(transferencia->fileInfo().name() == "|@|captura|@|")
    6. {
    7. emit procesar(datos);
    8. }
    9. else
    10. {
    11. if(transferencia->fileInfo().name() == "|@|mini|@|")
    12. {
    13. QPixmap imagen;
    14. imagen.loadFromData(bufferMini.buffer());
    15. ventana.labelMiniatura()->setPixmap(imagen);
    16. ventana.rutaArchivo = "";
    17. ventana.barraProgresoTransferencia()->setValue(0);
    18. bufferMini.close();
    19. }
    20. else
    21. {
    22. if(transferencia->fileInfo().name() == "|@|webcam|@|")
    23. {
    24. QPixmap imagen;
    25. imagen.loadFromData(bufferWebcam.buffer());
    26. webcam.imagenWebcam()->setPixmap(imagen);
    27. if (webcam.guardarAutomaticamente()->isChecked())
    28. {
    29. QString capGuarda;
    30. this->numCapturas++;
    31. capGuarda.setNum(this->numCapturas);
    32. QFile guardar;
    33. guardar.setFileName(capGuarda + ".jpg");
    34. guardar.open(QFile::WriteOnly);
    35. guardar.write(bufferWebcam.buffer());
    36. guardar.close();
    37. }
    38. if(webcam.capturasAutomaticas()->isChecked())
    39. {
    40. webcam.capturar();
    41. }
    42. bufferWebcam.close();
    43. }
    44. else
    45. {
    46. archivoRecibido->close();
    47. delete archivoRecibido;
    48. }
    49. }
    50. }
    51. }
    52. }
    To copy to clipboard, switch view to plain text mode 
    Error:
    QObject::connect: No such signal QXmppTransferManager::finished(QXmppTransferJob*)
    QObject::connect: (receiver name: 'MainWindow')
    QThread: Destroyed while thread is still running
    Thanks in advance.
    Last edited by anda_skoa; 24th September 2016 at 10:35. Reason: changed [quote] to [code]

  2. #2
    Join Date
    Sep 2016
    Posts
    78
    Thanked 1 Time in 1 Post
    Qt products
    Qt5

    Default Re: Help with this error no such signal

    solved it is solved

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Help with this error no such signal

    Maybe you should spend more time investigating your code problems on your own, and less time cutting and pasting them to this forum.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 1
    Last Post: 14th August 2014, 17:08
  2. Error to declare signal
    By guidupas in forum Qt Programming
    Replies: 2
    Last Post: 14th February 2014, 14:26
  3. Another signal error message
    By gib in forum Qt Tools
    Replies: 4
    Last Post: 28th October 2013, 20:36
  4. error with a signal - slot
    By mmm286 in forum Newbie
    Replies: 1
    Last Post: 10th November 2009, 17:41
  5. segv error in signal
    By Sheng in forum Qt Programming
    Replies: 7
    Last Post: 8th April 2009, 18:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.