void CustomPlotRegression::mousePressEvent( QMouseEvent* event )
{
    //qDebug() << Q_FUNC_INFO;
    if(event->button() == Qt::RightButton)
    {
        contextMenuRequest(event->pos());
        //        QRect rec = QApplication::desktop()->screenGeometry();
        //        int height = rec.height();
        //        int width = rec.width();
        //        //TODO controllare geometrie
        //        std::cout << height << std::endl;
        //        std::cout << width << std::endl;
        //        std::cout << event->pos().rx() << std::endl;
        //        std::cout << event->pos().ry() << std::endl;
        //        std::cout << event->pos().x() << std::endl;
        //        std::cout << event->pos().y() << std::endl;
        //std::cout << event->pos() << std::endl;
    }else
        routeMouseEvents( event );
}
示例#2
0
void qmlPlotPaintedItem::mouseDoubleClickEvent(QMouseEvent* event)
{
	routeMouseEvents(event);
}
示例#3
0
void qmlPlotPaintedItem::mouseMoveEvent(QMouseEvent* event)
{
	routeMouseEvents(event);
}
示例#4
0
/*! \brief the mouse double click event
    \param event the event
*/
void QtYARPScope::mouseDoubleClickEvent( QMouseEvent* event )
{
    routeMouseEvents( event );
}
示例#5
0
/*! \brief the mouse move event
    \param event the event
*/
void QtYARPScope::mouseMoveEvent( QMouseEvent* event )
{
    routeMouseEvents( event );
}
示例#6
0
/*! \brief the wheel mouse event
    \param event the event
*/
void QtYARPScope::wheelEvent(QWheelEvent* event)
{
    routeMouseEvents( event );
}
void CustomPlotRegression::mouseDoubleClickEvent( QMouseEvent* event )
{
    //qDebug() << Q_FUNC_INFO;
    routeMouseEvents( event );
}
void CustomPlotRegression::mouseMoveEvent( QMouseEvent* event )
{
    routeMouseEvents( event );
}