Beispiel #1
0
 /// <summary> Creates QApp object. </summary>
 /// <returns> The new QApp object. </returns>
 public static QApp CreateQApp() {
     if (_QApplication != null)
         throw new System.Exception("Only one Qapplication class may be created at a time");
     var opts = new List<string> {""};
     var ret = new QApp(opts);
     return ret;
 }
Beispiel #2
0
        /// <summary> Creates QApp object. </summary>
        /// <returns> The new QApp object. </returns>
        public static QApp CreateQApp(List <string> opts)
        {
            if (_QApplication != null)
            {
                throw new System.Exception("Only one Qapplication class may be created at a time");
            }
            var ret = new QApp(opts);

            return(ret);
        }
Beispiel #3
0
        public static void Main() {
            // Create a new QApplication object
            QApp = QApp.CreateQApp();

            // Create a basic widget
            var widg1 = new QWidget();
            widg1.Resize(250, 150);
            widg1.WindowTitle = "Simple example";
            widg1.Show();

            QApplication.Exec();
        }