Create a notification at a certain time
-
Hello,
For school I have to create a calendar program for the PC with Qt,
this calendar also has to give notifications a certain time before some scheduled appointment starts.But i have trouble finding out how I exactly can create this notifications without using a while loop (which will stop my program), I would be really thankfully if someone can help me a bit with that certain part of my project.
Thank you,
Dennis -
This "post":https://qt-project.org/forums/viewthread/14561 may help you.
-
Try this:
QDateTime now = QDateTime::currentDateTime();
QDateTime display;Using QTimer
QTimer *timer=new QTimer;
connect(timer, SIGNAL(timeout()),object,SLOT(display_msg());
timer->start(now.secsTo(display)*1000); -
Hii
I think for more information to your project you can take a look
http://msdn.microsoft.com/en-us/library/aa383614(v=vs.85).aspx
if you want to use WIN 32 API
hope it helps. -
bq. I think for more information to your project you can take a look
http://msdn.microsoft.com/en-us/library/aa383614(v=vs.85).aspx
if you want to use WIN 32 API
hope it helps.Why go for Window's specific API's when Qt has the functionality ? In this way it would be platform independent.
-
i gave this link because for more detail in order to clear and deep understanding.
yeah you are right WIN API is not recommended but could be the last option.