Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Jan 13, 2024
1 parent f50f132 commit aabbca8
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions Qt.Widgets/Controls/ListView/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# ListView

Shows how to create a list view with QListView.

## Sources

[src/ListView.h](src/ListView.h)

[src/ListView.cpp](src/ListView.cpp)

[CMakeLists.txt](CMakeLists.txt)

## Output

![Screenshot](../../../docs/Pictures/ListView.png)

## 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 :

``` cmake
mkdir build
cd build
cmake ..
start ./ListView.sln
```

#### macOS :

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

#### Linux with Code::Blocks :

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

#### Linux :

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

0 comments on commit aabbca8

Please sign in to comment.