Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Signal/slot confusion...
Qt 6.11 is out! See what's new in the release blog

Signal/slot confusion...

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 455 Views
  • 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.
  • I Offline
    I Offline
    Igor86
    wrote on last edited by Igor86
    #1

    Hello all!

    is there any functional difference between the two marked lines? the first one is tied to a button, the second one to a timer. But I would expect them to do exactly the same thing.

    4fcd5b12-6575-47fb-bf19-7bae652c5aa2-image.png

    What my goal is, is to have my telegram bot check for pinned messages at regular intervals. The problem I am facing tough, is that if I hit the button, it works as expected. EVERY time. while the timer's call causes some errors about 80% of the time in the telegram library and a software crash...

    How could this happen? isnt this exactly the same thing, beside that one is called by a button and the other by a timer?

    thank you!

    J.HilkJ 1 Reply Last reply
    0
    • I Igor86

      Hello all!

      is there any functional difference between the two marked lines? the first one is tied to a button, the second one to a timer. But I would expect them to do exactly the same thing.

      4fcd5b12-6575-47fb-bf19-7bae652c5aa2-image.png

      What my goal is, is to have my telegram bot check for pinned messages at regular intervals. The problem I am facing tough, is that if I hit the button, it works as expected. EVERY time. while the timer's call causes some errors about 80% of the time in the telegram library and a software crash...

      How could this happen? isnt this exactly the same thing, beside that one is called by a button and the other by a timer?

      thank you!

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Igor86 said in Signal/slot confusion...:

      isnt this exactly the same thing, beside that one is called by a button and the other by a timer

      yes, it is exactly the same thing


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      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