PDA

View Full Version : Is flags a typdef?



chuckle
13th September 2007, 21:54
I've just dipped my toes into Qt and was wondering about the following.
Class QMessageBox defines public types including

enum StandardButton { Ok, Open, Save, Cancel, ..., ButtonMask }
and

flags StandardButtons

What is flags? Is it a typedef?

wysota
13th September 2007, 22:26
The StandardButtons type is a typedef for QFlags<StandardButton>

Take a look at QFlags docs.