示例#1
0
  public static void main(String args[]) {
    QApplication.initialize(args);

    GlassPane pane = new GlassPane();
    pane.show();

    QApplication.execStatic();
    QApplication.shutdown();
  }
  public static void main(String args[]) {
    QApplication.initialize(args);

    OpenGLInGraphicsView widget1 = new OpenGLInGraphicsView(true);
    widget1.show();

    OpenGLInGraphicsView widget2 = new OpenGLInGraphicsView(false);
    widget2.show();

    QApplication.execStatic();
    QApplication.shutdown();
  }
    public static void main(String args[]) {
        QApplication.initialize(args);
//! [0]
    QTestEventList events;
    events.addKeyClick('a');
    events.addKeyClick(Qt.Key_Backspace);
    events.addDelay(200);

    QLineEdit ineEdit = new QLineEdit(myParent);
    ...
  public static void main(String args[]) {
    QApplication.initialize(args);
    // ! [0]
    QNetworkProxy proxy;
    proxy.setType(QNetworkProxy.Socks5Proxy);
    proxy.setHostName("proxy.example.com");
    proxy.setPort(1080);
    proxy.setUser("username");
    proxy.setPassword("password");
    QNetworkProxy.setApplicationProxy(proxy);
    // ! [0]

    // ! [1]
    serverSocket.setProxy(QNetworkProxy.NoProxy);
    // ! [1]

  }
 public static void main(String args[]) {
   QApplication.initialize(args);
 }