(C++) HelloQtQtCreatorLubuntu

January 25, 2018 · View on GitHub

 

 

 

 

 

(C++) HelloQtQtCreatorLubuntu

 

QtQt
CreatorLubuntu

 

Hello Qt using Qt Creator under Lubuntu 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: ./CppHelloQtQtCreatorLubuntu/CppHelloQtQtCreatorLubuntu.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

 

 

 

 

 

./CppHelloQtQtCreatorLubuntu/dialog.h

 


 

 

 

 

 

./CppHelloQtQtCreatorLubuntu/dialog.cpp

 


 

 

 

 

 

./CppHelloQtQtCreatorLubuntu/main.cpp

 


 

 

 

 

 

./CppHelloQtQtCreatorLubuntu/CppHelloQtQtCreatorLubuntu.sh

 


#!/bin/bash myfile="qmake" mytarget="CppHelloQtQtCreatorLubuntu" myprofile=$mytarget.pro if [ ! -e $myprofile ] then   echo "Qt Creator project '$myprofile' not found"   exit fi $myfile $myprofile if [ ! -e Makefile ] then   echo "FAIL: $myfile $myprofile"   exit fi make if [ -e $mytarget ] then   echo $mytarget": SUCCESS" else   echo $mytarget": FAIL" fi #Cleaning up rm *.o rm Makefile rm $mytarget rm moc_*.* rm ui_*.*