File tree 13 files changed +15
-15
lines changed
Qt.Widgets/CommonControls
13 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ add_subdirectory(Label)
12
12
add_subdirectory (LCDNumber)
13
13
add_subdirectory (LineEdit)
14
14
add_subdirectory (ListView)
15
+ add_subdirectory (ListView2)
15
16
add_subdirectory (ListWidget)
16
17
add_subdirectory (PictureBox)
17
18
add_subdirectory (PictureBox2)
@@ -23,5 +24,4 @@ add_subdirectory(SpinBox)
23
24
add_subdirectory (SpinButton)
24
25
add_subdirectory (ToggleButton)
25
26
add_subdirectory (TreeView)
26
- add_subdirectory (TreeView2)
27
27
add_subdirectory (Widget)
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ SUBDIRS = \
7
7
LCDNumber \
8
8
LineEdit \
9
9
ListView \
10
+ ListView2 \
10
11
ListWidget \
11
12
PictureBox \
12
13
PictureBox2 \
@@ -18,5 +19,4 @@ SUBDIRS = \
18
19
SpinButton \
19
20
ToggleButton \
20
21
TreeView \
21
- TreeView2 \
22
22
Widget \
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ namespace Examples {
41
41
QFrame frame;
42
42
QVBoxLayout layout {&frame};
43
43
QListView listView1;
44
- QStandardItemModel model;;
44
+ QStandardItemModel model;
45
45
QComboBox comboBoxMode;
46
46
};
47
47
}
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.1)
2
2
3
3
# Project
4
- project (TreeView2 )
4
+ project (ListView2 )
5
5
find_package (Qt5Widgets CONFIG REQUIRED)
6
6
7
7
# Options
@@ -12,5 +12,5 @@ set(CMAKE_CXX_STANDARD 17)
12
12
set (CMAKE_CXX_STANDARD_REQUIRED ON )
13
13
14
14
# Application
15
- add_executable (TreeView2 WIN32 MACOSX_BUNDLE src/TreeView2 .cpp src/TreeView2 .h)
16
- target_link_libraries (TreeView2 Qt5::Widgets)
15
+ add_executable (ListView2 WIN32 MACOSX_BUNDLE src/ListView2 .cpp src/ListView2 .h)
16
+ target_link_libraries (ListView2 Qt5::Widgets)
Original file line number Diff line number Diff line change
1
+ CONFIG += c++17
2
+ QT = widgets
3
+ SOURCES = src/ListView2.cpp
4
+ HEADERS = src/ListView2.h
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#include < QApplication>
2
- #include " TreeView2 .h"
2
+ #include " ListView2 .h"
3
3
4
4
using namespace Examples ;
5
5
Original file line number Diff line number Diff line change @@ -40,6 +40,6 @@ namespace Examples {
40
40
QFrame frame;
41
41
QVBoxLayout layout {&frame};
42
42
QTreeView treeView1;
43
- QStandardItemModel model;;
43
+ QStandardItemModel model;
44
44
};
45
45
}
Original file line number Diff line number Diff line change @@ -43,6 +43,6 @@ namespace Examples {
43
43
QFrame frame;
44
44
QVBoxLayout layout {&frame};
45
45
QTreeView treeView1;
46
- QStandardItemModel model;;
46
+ QStandardItemModel model;
47
47
};
48
48
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ shows how to use Qt widgets only by programming code (c++17).
37
37
38
38
[ ListView] ( Qt.Widgets/CommonControls/ListWidget ) shows how to create a list view with QListView.
39
39
40
+ [ ListView2] ( Qt.Widgets/CommonControls/ListView2 ) shows how to create a list view with QTreeView.
41
+
40
42
[ ListWidget] ( Qt.Widgets/CommonControls/ListWidget ) shows how to create a list widget with QListWidget.
41
43
42
44
[ PictureBox] ( Qt.Widgets/CommonControls/PictureBox ) shows how to create a picture box with QLabel.
@@ -59,8 +61,6 @@ shows how to use Qt widgets only by programming code (c++17).
59
61
60
62
[ TreeView] ( Qt.Widgets/CommonControls/TreeView ) shows how to create a three view with QTreeView.
61
63
62
- [ TreeView2] ( Qt.Widgets/CommonControls/TreeView2 ) shows how to create a list view with QTreeView.
63
-
64
64
[ Widget] ( Qt.Widgets/CommonControls/ToggleButton ) shows how to create a widget with QWidget.
65
65
66
66
## Containers
You can’t perform that action at this time.
0 commit comments