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. Program crash caused by disconnect signal

Program crash caused by disconnect signal

Scheduled Pinned Locked Moved Unsolved Qt for Python
qt for python
4 Posts 3 Posters 676 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.
  • T Offline
    T Offline
    tom me
    wrote on last edited by
    #1

    hi,

    I'm having trouble writing a program in PyQt5.

    When I call child window function in signal slot function. Disconnecting with "disconnect" and then closing the child window crashes the whole program.

    But I manually click the button to open the child window. Then use "disconnect" to disconnect the signal connection mentioned above, close the child window and everything works fine.

    What is causing this problem?

    Looking forward to your reply, thank you.

    jsulmJ 1 Reply Last reply
    0
    • T tom me

      hi,

      I'm having trouble writing a program in PyQt5.

      When I call child window function in signal slot function. Disconnecting with "disconnect" and then closing the child window crashes the whole program.

      But I manually click the button to open the child window. Then use "disconnect" to disconnect the signal connection mentioned above, close the child window and everything works fine.

      What is causing this problem?

      Looking forward to your reply, thank you.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @tom-me Please post relevant code and also use the debugger to get more information about the crash (stack trace).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tom me
        wrote on last edited by
        #3

        hi,

        Thanks for the tip, I found the cause of the problem by debugging.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          What was the issue ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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