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. Is QMovie::started not emitted, the first time a QMovie starts?
Forum Update on Monday, May 27th 2025

Is QMovie::started not emitted, the first time a QMovie starts?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 375 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.
  • Petross404_Petros SP Offline
    Petross404_Petros SP Offline
    Petross404_Petros S
    wrote on last edited by
    #1

    Hello, I have the following code :

    if(movie->isValid())
    {
    	movie->start();
    }
    ...
    connect(movie, &QMovie::started, this, &QtDice::disableWidgets);
    

    but QtDice::disableWidgets is called from the second time the movie->start occurs. Anyone knows why the first time the slot isn't triggered?

    I have tried with other slots too for example : QApplication::aboutQt and the same thing happens. Only after the first time the slot is called, so it isn't a problem in my slot's code.

    1 Reply Last reply
    0
    • Petross404_Petros SP Offline
      Petross404_Petros SP Offline
      Petross404_Petros S
      wrote on last edited by
      #2

      Actually connect(..) should be before movie->start. How easy was to make this mistake.

      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