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. [SOLVED]Is there any system(application) variable which keeps track of whether the application is being used first time

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 902 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    adnan
    wrote on last edited by
    #1

    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!
    }
    @

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved