Hello,
I do have a QGraphicsScene rendered in a QGraphicsView.
I connected an horizontal slider position with the position of a QGraphicsItem, both added to the scene.
The slider was added by using a QGraphicsProxyWidget.
WHen I move the slider from left to right, the QGraphicsItem does the same.
However, when moving the slider fast, from left to right, everything is smooth and perfect, from right to left the QGraphicsItem disappears sometimes while moving.
Do you know why?
I just connected this way
connect(slider,changePosition(int),mainwindow,SLOT(mySlotChangeItemPos(int)));
mySlotChangeItemPos(int newposx){
//
//convert newposx to pixel value
//
myitem->setPos(newposx, 0);
}
↧