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. Error thrown using Qthread in PySide6
Qt 6.11 is out! See what's new in the release blog

Error thrown using Qthread in PySide6

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

    I am creating a GUI using PySide6 where i have added a QThread on my Pushbutton (RUN Script button).
    It calls a script which basically contains certain calculations and then plots 1D and 2D plots. Its basically a matplotlib function
    When my script reached the matplotlib function, the thread throws an error:

    Error log: Starting a matplotlib GUI outside of the mail thread will likely fail.
    Hww do i resolve this?

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

      Hi,

      Don't go GUI operations in secondary threads.

      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
      1

      • Login

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