可以的
QColor::QColor ( QRgb rgb, uint pixel = 0xffffffff )
Constructs a color with the RGB value rgb and a custom pixel value pixel.
If pixel == 0xffffffff (the default), then the color uses the RGB value in a standard way. If pixel is something else, then the pixel value is set directly to pixel, skipping the normal allocation procedure.
把pixel值改一下就可以了,第一个还是ff,后面自己定
QPen::QPen ( const QColor & color, uint width = 0, PenStyle style = SolidLine )
Constructs a pen with the specified color, width and style.