I am building a c++ app with Qt5. In the examples of QPen I see that I can set the brush as follows:
QPen* myPen = new QPen();
myPen->setBrush(Qt::cyan);
While this compiles fine, it doesn't match the documentation. QPen's setBrush method is supposed to receive a QBrush. Why is it acceptable to pass in a Qt::GlobalColor instead? From the QPen.h file it does not appear that setBrush is overloaded.