Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74863

Using windows remote login, large custom cursors are not drawn correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.0
    • QPA: Windows
    • None
    • remote windows10
    • Windows

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ablasche Alex Blasche
            baoli bao li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes