GraphicsScene *scene =new GraphicsScene(this);
scene->setBackgroundBrush(Qt::red);
myView *gView = new myView(this);
gView->setGeometry(230,20,330,400);
//gView->installEventFilter(this);
gView->setScene(scene);
gView->setSceneRect(0,0,100,100);
gView->setAcceptDrops(true);
GraphicsScene *scene =new GraphicsScene(this);
scene->setBackgroundBrush(Qt::red);
myView *gView = new myView(this);
gView->setGeometry(230,20,330,400);
//gView->installEventFilter(this);
gView->setScene(scene);
gView->setSceneRect(0,0,100,100);
gView->setAcceptDrops(true);
To copy to clipboard, switch view to plain text mode
i am only able to drop in the right most 1/4 of the view ,i have try'd using QGraphicsview insted of myView , same result. the dragenter will not fire until the right most 1/4 is entered. i am sure i am missing something quite obvious but have read everything i could find pls can somebody point me in right direction.
Bookmarks