Ok I have a dialog with a QGraphicsView inside.
In my header i have QGraphicsScene *SampleScene;

Qt Code:
  1. SampleScene = new QGraphicsScene;
  2.  
  3. query.exec( "SELECT x,y FROM samples;" );
  4.  
  5. while( query.next() )
  6. {
  7. ( minX - query.value(0).toDouble() ) * -scaleX, ( maxY - query.value(1).toDouble() ) * scaleY, 5, 5 );
  8.  
  9. SampleScene->addItem(item);
  10. }
  11.  
  12. ui.graphicsView->setRenderHints( QPainter::Antialiasing );
  13. ui.graphicsView->setScene(SampleScene);
To copy to clipboard, switch view to plain text mode 

I would prefer dots rather than squares and should be easier to draw. I have tried ui.graphicsView->setUpdatesEnabled(false) which helped slightly but still is very slow. I have also tried QGraphicItemsGroup which I have yet to get working for some reason. I would put the items into a QList of QGraphicItems and then
Qt Code:
  1. SampleGroup = SampleScene->createItemGroup ( list );
  2. SampleGroup->show();
To copy to clipboard, switch view to plain text mode 

But I could never see the points. I have studied the 40000 chips example and have also implemented a custom QGraphicsItem which helped slightly in speed. Everything else looks similar to the chips example but much slower.