Package com.trolltech.qt.gui

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


   * 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

  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

  }

  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

  }
   
  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

Related Classes of com.trolltech.qt.gui.QCursor

Copyright © 2018 www.massapicom. 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.