]> Creatis software - cpPlugins.git/blobdiff - libs/cpPipelineEditor/Canvas.cxx
...
[cpPlugins.git] / libs / cpPipelineEditor / Canvas.cxx
index 7ee861fbed54f098b26d90d50691292533f49d0a..2a8023a53ea28ded764922e40364078498d7b545 100644 (file)
@@ -9,6 +9,10 @@ cpPipelineEditor::Canvas::
 Canvas( QWidget* parent )
   : Superclass( parent )
 {
+  this->m_Scene = new QGraphicsScene( this );
+  this->setScene( this->m_Scene );
+  this->setRenderHint( QPainter::Antialiasing );
+  this->setAcceptDrops( true );
 }
 
 // -------------------------------------------------------------------------