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

Detection area of for cursors on QGraphicsItems is offset on OSX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 4.7.0
    • Widgets: GraphicsView
    • None
    • OS X 10.6, Qt SDK 2010.05
    • macOS

    Description

      After setting a cursor on a graphics item, the cursor is changed in an area slightly (about 2 pixels) offset from the actual shape of the item. For example:

              QGraphicsScene* gs = new QGraphicsScene();
      	QGraphicsView* gv = new QGraphicsView(gs, 0);
      	QGraphicsRectItem* item = new QGraphicsRectItem(QRectF(0, 0, 10, 10), 0, gs);
      	item->setPos(100,100);
      	item->setCursor(Qt::SizeFDiagCursor);
      	item->show();
      	gv->show();
      

      Move the cursor around this box. The area where the cursor changes is about -2,-2 offset from the drawn shape.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            leos Leo Spalteholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes