Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 1.64 KB

README.md

File metadata and controls

73 lines (49 loc) · 1.64 KB

Qt.Core

shows how to use Qt widgets only by programming code (c++17).

qt

  • HelloWorldConsole The classic first application "Hello, World!" with QTextStream stream.
  • List shows how to use QList.
  • Console shows how to use QTextStream stream with stdin and stdout.
  • ConsoleColor shows how to use QTextStream stream with stdout and ANSI colors.
  • StringSplit shows how to use QString::split method.
  • StringUnicode shows how to use QTextStream and QString with unicode.
  • StringUnicode2 shows how to use QTextStream and QString with unicode.

Generate and build

Qt Creator

To build these projects, open Qt.Core.pro file with Qt Creator.

CMake

To build this project, open "Terminal" and type following lines:

Set CMAKE_PREFIX_PATH with Qt6 install path.

Windows :

mkdir build
cd build
cmake ..
start ./Qt.Core.sln

macOS :

mkdir build
cd build
cmake .. -G "Xcode"
open ./Qt.Core.xcodeproj

Linux with Code::Blocks :

mkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./Qt.Core.cbp > /dev/null 2>&1

Linux :

mkdir build
cd build
cmake .. 
cmake --build . --config Debug
./AnyProject