Exemple #1
0
 /// <summary> Creates QGuiApp object. </summary>
 /// <returns> The new QGuiApp object. </returns>
 public static QGuiApp CreateQGuiApp() {
     if (_QGuiApplication != null)
         throw new System.Exception("Only one QGuiApplication class may be created at a time");
     var opts = new List<string>();
     //opts.Add("");
     var ret = new QGuiApp(opts);
     return ret;
 }
Exemple #2
0
        private static unsafe void Main() {
            QGuiApp = QGuiApp.CreateQGuiApp();

            LoadQml();

            // Run the QApplication Process
            QGuiApplication.Exec();
        }
Exemple #3
0
        /// <summary> Creates QGuiApp object. </summary>
        /// <returns> The new QGuiApp object. </returns>
        public static QGuiApp CreateQGuiApp(List <string> opts)
        {
            if (_QGuiApplication != null)
            {
                throw new System.Exception("Only one QGuiApplication class may be created at a time");
            }
            var ret = new QGuiApp(opts);

            return(ret);
        }