I have a black rectangle
Unsolved
General and Desktop
-
void CustomPlotZoom::mouseMoveEvent(QMouseEvent * event)
{
if (click_right == true)
{
mRubberBand->setGeometry(QRect(mOrigin, event->pos()).normalized());}
else { QCursor cursor1;
x = xAxis->pixelToCoord(event->pos().x());
y = yAxis->pixelToCoord(event->pos().y());
g= cursor1.pos();//setToolTip(QString("%1 , %2").arg(x).arg(y)); a= QString("%1 , %2").arg(x).arg(y); //double y1 = yAxis->range().minRange;
//emit sign_move();
QToolTip::showText(g,a);
}}
when with the cursor I go out of the widget I have a black rectangle..why?
-
@vale88
a black rectangle where? -
@raven-worx when I move..I solved changing the event