Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to define the object of QStringList class as static and initialize it?
How to define the object of QStringList class as static and initialize it?
For integer variable a

Definition: class Button {static int a;; }

Initialization: intbutton:: a = 0;

be easy to

analogize

For QStringList

Definition: class button {static QStringList a;; }

Initialization:

QStringList b;

QStringList button:: a = b;;

It should be right to do so.