[SOLVED]Is there any system(application) variable which keeps track of whether the application is being used first time



  • I wan't to display a message, only on the first usage of application, i.e. a piece of code should be executed only once, when application is first time invoked. I tried using QSettings, but couldn't work out any way.

    @
    if(firstTime)
    {
    //do something!
    }
    @



  • No, but you can store information about first startup in QSettings. Learn about it in documentation.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.