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. QThread : Support for freeze
Qt 6.11 is out! See what's new in the release blog

QThread : Support for freeze

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 2 Posters 1.2k 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
    icapathos
    wrote on last edited by
    #1

    I made a gui that running QThread in it.
    When I run that within IDE like PyCharm, Eclipse, it works well.
    But, after freezing via PyInstaller, it fails to run in multi thread environ.
    According to what I searched for, in case of "multiprocessing" of Python it provides freeze_support() function.
    Does QThread provide supporting for freeze like PyInstaller, Py2exe, cx_freeze?

    jsulmJ 1 Reply Last reply
    0
    • I icapathos

      I made a gui that running QThread in it.
      When I run that within IDE like PyCharm, Eclipse, it works well.
      But, after freezing via PyInstaller, it fails to run in multi thread environ.
      According to what I searched for, in case of "multiprocessing" of Python it provides freeze_support() function.
      Does QThread provide supporting for freeze like PyInstaller, Py2exe, cx_freeze?

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

      @icapathos said in QThread : Support for freeze:

      I made a gui that running QThread in it.

      Using Qt?
      Qt GUI classes should only be used in main thread! Main thread is the one where QApplication:: exec() was called. Accessing Qt GUI classes in other threads than main thread is NOT supported!

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

      1 Reply Last reply
      3
      • I Offline
        I Offline
        icapathos
        wrote on last edited by
        #3

        Actually, I run GUI in main thread and just send signal from out of main thread.
        To add more details, I use QThread to walk down directories and gather sources, and then send signals to main GUI thread and create item in QListWidget.
        When I run the GUI within Esclipse, it works well.
        But, after freezing with PyInstaller and executing it, it looks like running only in main thread.

        jsulmJ 1 Reply Last reply
        0
        • I icapathos

          Actually, I run GUI in main thread and just send signal from out of main thread.
          To add more details, I use QThread to walk down directories and gather sources, and then send signals to main GUI thread and create item in QListWidget.
          When I run the GUI within Esclipse, it works well.
          But, after freezing with PyInstaller and executing it, it looks like running only in main thread.

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

          @icapathos Well, without code one can only guess...

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

          1 Reply Last reply
          1

          • Login

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