What is the meaning of colon (:) operator in “uint isWidget : 1;” in Qt? [duplicate]
问题 This question already has answers here : What does a colon in a struct declaration mean, such as :1, :7, :16, or :32? (3 answers) Closed 4 years ago . What is the meaning of colon (:) operator in "uint isWidget : 1;" in Qt? Is "uint isWidget : 1;" equivalent to "uint isWidget(1)"? The code in Qt is QObjectData { public: virtual ~QObjectData() = 0; QObject *q_ptr; QObject *parent; QObjectList children; uint isWidget : 1; uint pendTimer : 1; uint blockSig : 1; uint wasDeleted : 1; uint