Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7916441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:48:34+00:00 2026-06-03T14:48:34+00:00

Basically, I’m doing some image processing and using a QImage in a QLabel to

  • 0

Basically, I’m doing some image processing and using a QImage in a QLabel to display the current frame in a video sequence. Let’s say I want to update the QImage to the next frame at 30 fps (or if some processing is not done by the 30 fps interval, wait until it’s done), but I don’t want the whole program to stop during that 30 fps.

So the flow is…

if (done_some_work && 30fps_interval_has_passed)
{
   updateQImage();
}

How is this done in Qt? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:48:36+00:00Added an answer on June 3, 2026 at 2:48 pm

    And use a QTimer to send a signal repaint the frame every 1000/30 ms

    myTimer= new QTimer(this);
    myTimer->setInterval(1000/fps); // ms
    connect(myTimer, SIGNAL(timeout()), this, SLOT(doNextFrame())); 
    
    // where
    public slots:
        virtual void doNextFrame() {repaint();}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I'm using python to print out some information in the terminal and some
Basically I have some variables that I don't want to preinitialize: originalTime = None
Basically, I'm doing a lot with Visual Studio lately and in my quest to
Basically what I am doing is giving a user a list of terms via
Basically, I have a JTextPane to hold some text which I wish to style.
basically i would like to display .doc file in WWW, i've tried to fetch
Basically we've noticed that on some computers setting the JVM option -Xmx (max heap
Basically I have this server app I built in vc#, and for some reason
Basically I have some sort of third party software running on Windows 7 which
Basically I have some code to check a specific directory to see if an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.