<div dir="ltr"><div><div><div><div>Hi Phil,<br><br></div>I just wondered why Qt is printing a warning "QColor::setRgb: RGB parameters out of range" if<br></div>the method edgeColor() of QsciScintilla is called. Debugging into this function leads to the reason:<br><br></div>The long variable res contains the full RGB value as uint32 value. While the blue and green component are split from res using a bit-shift and bitmask, the red component is directly obtained<br></div><div>from res, hence, a value that is much bigger than 255.<br><br></div><div>Probably the implementation: <br></div><div><div><div><div><div><br>QColor QsciScintilla::edgeColor() const<br>{<br>    long res = SendScintilla(SCI_GETEDGECOLOUR);<br><br>    return QColor((int)res & 0x00ff, ((int)(res >> 8)) & 0x00ff, ((int)(res >> 16)) & 0x00ff);<br>}<br><br></div><div>will solve the problem.<br><br></div><div>Best regards<br><br></div><div>Marc<br></div><div><br></div></div></div></div></div></div>