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. Modal spinning loader

Modal spinning loader

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 751 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.
  • A Offline
    A Offline
    Alhazred
    wrote on last edited by
    #1

    Hello, I have developed a tool which I use at work, it works, but I want to add a functionality.
    This tool reads a GCODE file and displays on a QGraphicsScene the segments corresponding to the coordinates contained in the file.
    If the file is complex, it might take some time before showing the segments and the tool might look stuck.
    When the software starts to elaborate the file, I would like to show a loading spinner (a gif image) over the QGraphicsScene, possibly like a modal window with a semi-transparent background, and to remove it as the segments are ready to be shown.

    How can I obtain that?

    You can read the full code here:
    https://github.com/LuigiCaradonna/isoviewer

    If you want to try the tool, once you open it, load the iso file (bottom left button), the file is TEST.PGR, then click the button "Elabora", it is not important to set the top right inputs.

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

      Hi and welcome to devnet,

      Are looking for something like QProgressDialog ?

      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
      • A Offline
        A Offline
        Alhazred
        wrote on last edited by
        #3

        Thank you for your answer.
        Yes, it seems to be what I needed, I didn't know that class, I'm new to Qt.
        I've just written some code to show the dialog while the software elaborates the data and it appears.

        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