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

QGraphicsLineItem cause painting errors when item is movable [reg]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.6.0
    • 4.6.0
    • Widgets: GraphicsView
    • None
    • cc4d3fbc317bc9044c3ce23569f0225b29af4fd5

      Run the application on windows and move the QGraphicsLineItem, this will not update correctly. This works in 4.5.3 but not in 4.6.0 beta 1.

      #include <QtGui>

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);

      QGraphicsView view;
      QGraphicsScene scene;;
      scene.setSceneRect(0,0,200,200);
      view.setScene(&scene);

      QGraphicsLineItem item;
      item.setLine(0,100,100,100);
      item.setFlags(QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsMovable);

      scene.addItem(&item);

      view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      view.show();

      return app.exec();
      }

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

            bjnilsen Bjørn Erik Nilsen
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes