Examples of QPoint


Examples of com.trolltech.qt.core.QPoint

  public void mouseMoveEvent(QMouseEvent event){
    if (rightPressed){
      if (lastPan != null && !lastPan.isNull()) {
        hasPanned = true;
        // Get how much we panned
        QPointF s1 = mapToScene(new QPoint((int) lastPan.x(),
            (int) lastPan.y()));
        QPointF s2 = mapToScene(new QPoint((int) event.pos().x(),
            (int) event.pos().y()));
        QPointF delta = new QPointF(s1.x() - s2.x(), s1.y() - s2.y());
        lastPan = event.pos();
        // Scroll the scrollbars ie. do the pan
        double zoom = this.matrix().m11();
View Full Code Here

Examples of com.trolltech.qt.core.QPoint

  public void mouseMoveEvent(QMouseEvent event) {
    if (rightPressed) {
      if (lastPan != null && !lastPan.isNull()) {
        // Get how much we panned
        QPointF s1 = mapToScene(new QPoint((int) lastPan.x(),
            (int) lastPan.y()));
        QPointF s2 = mapToScene(new QPoint((int) event.pos().x(),
            (int) event.pos().y()));
        QPointF delta = new QPointF(s1.x() - s2.x(), s1.y() - s2.y());
        lastPan = event.pos();
        // Scroll the scrollbars ie. do the pan
        double zoom = this.matrix().m11();
View Full Code Here

Examples of com.trolltech.qt.core.QPoint

    QRect availGeo = desktop.availableGeometry(screen);
   
    int x1 = (availGeo.width()/2)-(image.size().width()/2);
    int y1 = (availGeo.height()/2)-(image.size().height()/2);
   
    painter.drawImage(new QPoint(x1,y1), image);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.