(C++) HelloQtQtCreatorWindows

January 25, 2018 · View on GitHub

 

 

 

 

 

(C++) HelloQtQtCreatorWindows

 

QtQt
CreatorWindows

 

Hello Qt using Qt Creator under Windows is a Hello Qt program.

 

Technical facts

 

Application type(s)

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

  • Qt Qt: version 5.4.1 (32 bit)
  • STL STL: GNU ISO C++ Library, version 4.9.2

 

 

 

 

 

Qt project file: ./CppHelloQtQtCreatorWindows/CppHelloQtQtCreatorWindows.pro

 


QT       += core gui #Support both Qt4 and Qt5 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TEMPLATE = app SOURCES += main.cpp\         dialog.cpp HEADERS  += dialog.h FORMS    += dialog.ui

 

 

 

 

 

./CppHelloQtQtCreatorWindows/dialog.h

 


 

 

 

 

 

./CppHelloQtQtCreatorWindows/dialog.cpp

 


 

 

 

 

 

./CppHelloQtQtCreatorWindows/main.cpp

 


 

 

 

 

 

./CppHelloQtQtCreatorWindows/CppHelloQtQtCreatorWindows.sh

 


#!/bin/bash mymake="e:/Qt/Qt5.1.0/Tools/mingw48_32/bin/mingw32-make.exe" myqmake="e:/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe" mytarget="CppHelloQtQtCreatorWindows" myprofile=$mytarget.pro myexe=release/$mytarget.exe if [ -e $myqmake ] then   echo "Compiler '$myqmake' found" else   echo "Compiler '$myqmake' not found directly"   #exit fi if [ -e $myprofile ] then   echo "Qt Creator project '$myprofile' found" else   echo "Qt Creator project '$myprofile' not found"   exit fi echo "1/2: Creating Windows makefile" $myqmake $myprofile if [ -e Makefile ] then   echo "Makefile created successfully" else   echo "FAIL: $myqmake $myprofile"   exit fi if [ -e $mymake ] then   echo "Compiler '$mymake' found" else   echo "Compiler '$mymake' not found directly"   #exit fi echo "2/2: making makefile" $mymake echo $myexe if [ -e $myexe ] then   echo "SUCCESS" else   echo "FAIL" fi #Cleaning up rm Makefile rm Makefile.* rm -r release rm -r debug rm ui_*.*