fix:README.md
14
QtQlistWidgetEx/ExQListWidget.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "ExQListWidget.h"
|
||||
#include "ui_ExQListWidget.h"
|
||||
|
||||
ExQListWidget::ExQListWidget(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
ui(new Ui::ExQListWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
ExQListWidget::~ExQListWidget()
|
||||
{
|
||||
delete ui;
|
||||
}
|
22
QtQlistWidgetEx/ExQListWidget.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef EXQLISTWIDGET_H
|
||||
#define EXQLISTWIDGET_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
namespace Ui {
|
||||
class ExQListWidget;
|
||||
}
|
||||
|
||||
class ExQListWidget : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ExQListWidget(QWidget *parent = nullptr);
|
||||
~ExQListWidget();
|
||||
|
||||
private:
|
||||
Ui::ExQListWidget *ui;
|
||||
};
|
||||
|
||||
#endif // EXQLISTWIDGET_H
|
24
QtQlistWidgetEx/ExQListWidget.ui
Normal file
@@ -0,0 +1,24 @@
|
||||
<ui version="4.0">
|
||||
<class>ExQListWidget</class>
|
||||
<widget class="QMainWindow" name="ExQListWidget" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>ExQListWidget</string>
|
||||
</property>
|
||||
<widget class="QMenuBar" name="menuBar" />
|
||||
<widget class="QToolBar" name="mainToolBar" />
|
||||
<widget class="QWidget" name="centralWidget" />
|
||||
<widget class="QStatusBar" name="statusBar" />
|
||||
</widget>
|
||||
<layoutDefault spacing="6" margin="11" />
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
14
QtQlistWidgetEx/Examples.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "Examples.h"
|
||||
#include "ui_Examples.h"
|
||||
|
||||
Examples::Examples(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::Examples)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
Examples::~Examples()
|
||||
{
|
||||
delete ui;
|
||||
}
|
22
QtQlistWidgetEx/Examples.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef EXAMPLES_H
|
||||
#define EXAMPLES_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui {
|
||||
class Examples;
|
||||
}
|
||||
|
||||
class Examples : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Examples(QWidget *parent = nullptr);
|
||||
~Examples();
|
||||
|
||||
private:
|
||||
Ui::Examples *ui;
|
||||
};
|
||||
|
||||
#endif // EXAMPLES_H
|
20
QtQlistWidgetEx/Examples.ui
Normal file
@@ -0,0 +1,20 @@
|
||||
<ui version="4.0">
|
||||
<class>Examples</class>
|
||||
<widget class="QWidget" name="Examples" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>Examples</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layoutDefault spacing="6" margin="11" />
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
40
QtQlistWidgetEx/QtQlistWidgetEx.pro
Normal file
@@ -0,0 +1,40 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2019-08-30T19:36:43
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += core gui
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = QtQlistWidgetEx
|
||||
TEMPLATE = app
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which has been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
# deprecated API in order to know how to port your code away from it.
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
# You can also make your code fail to compile if you use deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
CONFIG += c++11
|
||||
|
||||
SOURCES += \
|
||||
main.cpp \
|
||||
Examples.cpp
|
||||
|
||||
HEADERS += \
|
||||
Examples.h
|
||||
|
||||
FORMS += \
|
||||
Examples.ui
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
BIN
QtQlistWidgetEx/images/List.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
QtQlistWidgetEx/images/TREE.png
Normal file
After Width: | Height: | Size: 324 B |
BIN
QtQlistWidgetEx/images/Table.png
Normal file
After Width: | Height: | Size: 461 B |
BIN
QtQlistWidgetEx/images/add.png
Normal file
After Width: | Height: | Size: 369 B |
BIN
QtQlistWidgetEx/images/clear.png
Normal file
After Width: | Height: | Size: 584 B |
BIN
QtQlistWidgetEx/images/delete.png
Normal file
After Width: | Height: | Size: 594 B |
BIN
QtQlistWidgetEx/images/init.png
Normal file
After Width: | Height: | Size: 913 B |
BIN
QtQlistWidgetEx/images/insert.png
Normal file
After Width: | Height: | Size: 374 B |
11
QtQlistWidgetEx/main.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "Examples.h"
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
Examples w;
|
||||
w.show();
|
||||
|
||||
return a.exec();
|
||||
}
|
2
QtQlistWidgetEx/resources.qrc
Normal file
@@ -0,0 +1,2 @@
|
||||
<!DOCTYPE RCC>
|
||||
<RCC version="1.0"/>
|