Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.0
-
None
-
remote windows10
Description
Using windows remote login, we draw using a custom mouse style.
Code show as below
QPixmap pix(97, 32); //width greator than 96, will not display correctly pix.fill(Qt::transparent); QPainter painter(&pix); QPen pen; pen.setWidth(2); pen.setColor(Qt::black); painter.setPen(pen); painter.drawLine(QPointF(8, 0), QPointF(8, 16)); painter.drawLine(QPointF(0, 8), QPointF(16, 8)); painter.end(); QCursor* curInsCreator = new QCursor(pix, 0, 0); setCursor(*curInsCreator);
When creating a pixmap with a width greater than 96, the mouse style will not display correctly. Note, be sure to use remote login.