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); }