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. Singleton Class example
Forum Updated to NodeBB v4.3 + New Features

Singleton Class example

Scheduled Pinned Locked Moved Solved General and Desktop
qt singleton
3 Posts 2 Posters 472 Views
  • 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.
  • D Offline
    D Offline
    dan1973
    wrote on last edited by
    #1

    HI,

    I need to run an QWidget Application once using Singleton class. Can you please help me with an example. Thanks in advance

    jsulmJ 1 Reply Last reply
    0
    • D dan1973

      HI,

      I need to run an QWidget Application once using Singleton class. Can you please help me with an example. Thanks in advance

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @dan1973 Do you mean you want to make sure only one instance of your app can run at a given time?
      If so take a look at https://github.com/qtproject/qt-solutions/tree/master/qtsingleapplication

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • D Offline
        D Offline
        dan1973
        wrote on last edited by
        #3

        thank you @jsulm it was really nice of you to give me that guidance. i have worked on to use loader example for showning QWidget app once. i will use the rest of examples.
        LoveQt

        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