This folder contains Qt.Widgets "Hello, world!" examples.
- HelloWorldEmoticons The classic first application "Hello, world!" with QLabel and emoticons.
- HelloWorldLabel The classic first application "Hello, world!" with QLabel.
- HelloWorldMessageBox The classic first application "Hello, world!" with QMessageBox.
- HelloWorldPaint The classic first application "Hello, world!" with QPainter.
To build these projects, open each HelloWorlds.pro
file with Qt Creator.
To build this project, open "Terminal" and type following lines:
Set CMAKE_PREFIX_PATH
with Qt6 install path.
mkdir build
cd build
cmake ..
start ./HelloWorlds.sln
Select any project and type Ctrl+F5 to build and run it.
mkdir build
cd build
cmake .. -G "Xcode"
open ./HelloWorlds.xcodeproj
Select any project and type Cmd+R to build and run it.
mkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./HelloWorlds.cbp > /dev/null 2>&1
Select any project and type F10 to build and run it.
mkdir build
cd build
cmake ..
cmake --build . --config Debug
./AnyProject