⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
Singleton in QT. How?
-
Hello all!
I am perfectly aware of Singleton on C++. The question - Is in Qt something special in conjunction to Q_OBJECT macros? Is there example of Qt (not pure C++)?
-
Singletons in Qt are exactly the same as C++ singletons. No special magic of any kind.
Well, for convenience you can use Q_DISABLE_COPY for less typing, but it's really just a tiny convenience wrapper.
-
@sierdzio Thx to you. Issue solved, example published.