Singleton in QT. How?
-
wrote on 5 Sept 2019, 07:48 last edited by
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.
-
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.
wrote on 5 Sept 2019, 10:27 last edited by@sierdzio Thx to you. Issue solved, example published.
1/3