Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GIF - QDialog

GIF - QDialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 454 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.
  • N Offline
    N Offline
    NotYourFan
    wrote on last edited by
    #1

    Hey,

    i want to play a "gif" in my QDialog.

    I have a QDialog class, i try :

    gifTest::gifTest(QWidget *parent) : QDialog(parent), ui(new Ui::gifTest)
    {
         ui->setupUi(this);
         QMovie *mo = new QMovie(":/pics/load.gif");
         ui->label->setMovie(mo);
         mo->start();
    }
    

    QDialog opened but i cant see the GIF ...
    Any Ideas?

    Pl45m4P 1 Reply Last reply
    0
    • N NotYourFan

      Hey,

      i want to play a "gif" in my QDialog.

      I have a QDialog class, i try :

      gifTest::gifTest(QWidget *parent) : QDialog(parent), ui(new Ui::gifTest)
      {
           ui->setupUi(this);
           QMovie *mo = new QMovie(":/pics/load.gif");
           ui->label->setMovie(mo);
           mo->start();
      }
      

      QDialog opened but i cant see the GIF ...
      Any Ideas?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @notyourfan

      Is your label visible? Check your gif-path. Does it work with another image-file?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NotYourFan
        wrote on last edited by
        #3

        Hey,

        yes i double checked the path and set the label visible to "true".

        jsulmJ 1 Reply Last reply
        0
        • N NotYourFan

          Hey,

          yes i double checked the path and set the label visible to "true".

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

          @notyourfan Does the label change (look differently) when you try to play?
          Are there any warnings/errors in terminal?

          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