My name is Mario, I'm new to this forum
and I sincerely apologize for my bad English.
I am having a dilemma about which is the best place to declare constants.
For example, I have an item that is derived from QGraphicsItem,
this element has two constant colors: pen color and brush color.
I'm thinking of declaring them as private constants:
class Rect : public QGraphicsItem
static const int _penColor = 0;
static const int _brushColor = 1;
But it also can be declared as definitions in the header:
#define PENCOLOR 0
#define BRUSHCOLOR 1
As well as local variables:
const int penColor = 0;
const int brushColor = 1;
Maybe this is not important, but I wish I know what you think?