Basic project setup
This commit is contained in:
		
							parent
							
								
									3ed9ccee2e
								
							
						
					
					
						commit
						54332b6384
					
				
					 11 changed files with 437 additions and 21 deletions
				
			
		
							
								
								
									
										15
									
								
								src/main.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								src/main.cpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
#include <QGuiApplication>
 | 
			
		||||
#include <QQmlApplicationEngine>
 | 
			
		||||
 | 
			
		||||
int main(int argc, char *argv[]) {
 | 
			
		||||
  QGuiApplication app(argc, argv);
 | 
			
		||||
 | 
			
		||||
  QQmlApplicationEngine engine;
 | 
			
		||||
  QObject::connect(
 | 
			
		||||
      &engine, &QQmlApplicationEngine::objectCreationFailed, &app,
 | 
			
		||||
      []() { QCoreApplication::exit(-1); }, Qt::QueuedConnection);
 | 
			
		||||
 | 
			
		||||
  engine.load(QStringLiteral("qrc:/qml/Main.qml"));
 | 
			
		||||
 | 
			
		||||
  return app.exec();
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue