Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Show animated progress inidicator while doing time consuming c++ stuff.
Forum Updated to NodeBB v4.3 + New Features

Show animated progress inidicator while doing time consuming c++ stuff.

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 4 Posters 1.1k 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
    nando76
    wrote on last edited by
    #1

    Hi,

    i am trying to realize an animated progesss indicator.

    The problem is that it should be displayed (and animated) while i call c++ stuff which takes some time.
    I really do not want to start using threads for it.
    Maybe there is an "easier" solution? Somethinh like overwrite cursor for desktop applications?

    How would you try to solve this?

    Have a nice day,
    Nando

    1 Reply Last reply
    0
    • IamSumitI Offline
      IamSumitI Offline
      IamSumit
      wrote on last edited by
      #2

      Hi
      Try this..

      @
      QMovie *movie = new QMovie(":Animations/icons/yourAnimatedIcon.gif");
      QLabel *yourLabel = new QLabel(this);
      yourLabel->setMovie(movie);
      movie->start();
      @

      hope it helps

      Be Cute

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        I don't think so there's a direct way but you could emit a signal from QML, connect it to a C++ class and setCursor to Qt::BusyCursor or Qt::WaitCursor. QQuickItem also has setCursor();

        157

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          I know you told about not starting the thread. But starting the thread is elegant way it avoids lot of stuff. I have tried earlier and move to thread finally.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          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