Skip to content

Files

Latest commit

9dedab1 · Jan 14, 2024

History

History

ListView

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 12, 2024
Jan 14, 2024
Jan 11, 2024
Jan 13, 2024

ListView

Shows how to create a list view with QListView.

Sources

src/ListView.h

src/ListView.cpp

CMakeLists.txt

Output

Screenshot

Generate and build

Qt Creator

To build these projects, open ListView.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 ./ListView.sln

macOS :

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

Linux with Code::Blocks :

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

Linux :

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