Examples of QCursor


Examples of com.trolltech.qt.gui.QCursor

    if (event.button().equals(Qt.MouseButton.RightButton)){
      // For panning the view
      rightPressed = true;
      hasPanned = false;
      lastPan = event.pos();
      setCursor(new QCursor(CursorShape.ClosedHandCursor));
    }
    super.mousePressEvent(event);
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QCursor

   * In this case, this will disallow the user to pan.
   */
  public void mouseReleaseEvent(QMouseEvent event){
    if(event.button().equals(Qt.MouseButton.RightButton)){
      rightPressed = false;
      setCursor(new QCursor(CursorShape.ArrowCursor));
    }
    super.mouseReleaseEvent(event);
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QCursor

  public void mousePressEvent(QMouseEvent event) {
    if (event.button().equals(Qt.MouseButton.RightButton)) {
      // For panning the view
      rightPressed = true;
      lastPan = event.pos();
      setCursor(new QCursor(CursorShape.ClosedHandCursor));
    }
    super.mousePressEvent(event);
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QCursor

  }

  public void mouseReleaseEvent(QMouseEvent event) {
    if (event.button().equals(Qt.MouseButton.RightButton)) {
      rightPressed = false;
      setCursor(new QCursor(CursorShape.ArrowCursor));
    }
    super.mouseReleaseEvent(event);
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QCursor

  }
   
  private void waitCursor(boolean wait) {
    if (wait) {
      if (QApplication.overrideCursor() == null)
        QApplication.setOverrideCursor(new QCursor(Qt.CursorShape.WaitCursor));
    }
    else {
      if (QApplication.overrideCursor() != null)
        QApplication.restoreOverrideCursor();
      else
        QApplication.setOverrideCursor(new QCursor(Qt.CursorShape.ArrowCursor));
    }
    listManager.refreshCounters();
  }
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.