Home > Mobile >  Qt singleton pattern
Qt singleton pattern

Time:09-17

Existing with a UI class, want to make it in the whole project is created only once, so he thought of the singleton pattern, but with the UI interface of the class in the constructor of the UI - & gt; SetUI (this) can lead to simple interest classes use collapse, excuse me how a class with the UI interface design for the singleton class?
  •  Tags:  
  • Qt
  • Related