LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

qt

Cross-platform C++ application framework tools

TLDR

Create Qt project
$ qmake -project
copy
Generate Makefile
$ qmake
copy
Build with CMake
$ cmake -DCMAKE_PREFIX_PATH=[/path/to/Qt] ..
copy
Run Qt Designer
$ designer
copy
Run Qt Creator
$ qtcreator
copy

SYNOPSIS

Qt framework tools and utilities

DESCRIPTION

Qt is a cross-platform C++ framework for GUI applications. It provides widgets, graphics, networking, and more. This covers the main Qt development tools.

EXAMPLES

$ # Create project file
qmake -project

# Generate Makefile
qmake myproject.pro

# Build
make

# Run UI designer
designer

# View QML file
qmlscene myapp.qml

# Get Qt version
qmake --version
copy

TOOLS

qmake

Build system generator.
moc
Meta-Object Compiler.
uic
UI compiler.
rcc
Resource compiler.
designer
Visual UI designer.
qtcreator
IDE.
qmlscene
QML viewer.

CMAKE INTEGRATION

$ cmake_minimum_required(VERSION 3.16)
project(myapp)

find_package(Qt6 REQUIRED COMPONENTS Widgets)
qt_standard_project_setup()

qt_add_executable(myapp main.cpp)
target_link_libraries(myapp Qt6::Widgets)
copy

ENVIRONMENT

$ # Set Qt path
export PATH=/opt/Qt/6.x/gcc_64/bin:$PATH
export LD_LIBRARY_PATH=/opt/Qt/6.x/gcc_64/lib
copy

INSTALL

sudo dnf install qt
copy
brew install qt
copy

CAVEATS

Large framework. Licensing: GPL, LGPL, or commercial. Qt5 and Qt6 APIs differ.

HISTORY

Qt was created by Trolltech in 1991, later acquired by Nokia, then Digia, now The Qt Company.

SEE ALSO

qmake(1), cmake(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid