Skip to content

Delay execute in Qt, execute a part of the code after the specified delay.

Notifications You must be signed in to change notification settings

arkceajin/qtdelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

qtdelay

qtdelay provide a single marco function which is able to execute a part of the code after the specified delay. it won't block the thread beacuase it's based on QTimer.

How to use

  1. Put qtdelay.h into your project, add it into .pro , and enable C++11 by adding QMAKE_CXXFLAGS += -std=c++11.

  2. Use it like QtDelay(1000, {qDebug()<<"Hello";});. this code will output hello after 1 second.

About

Delay execute in Qt, execute a part of the code after the specified delay.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages