fix:README.md

This commit is contained in:
touwoyimuli 2019-09-01 17:15:19 +08:00
parent e32c7dcdaf
commit 318e9cb6d3
18 changed files with 184 additions and 4 deletions

View 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;
}

View 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

View 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>

View 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;
}

View 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

View 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>

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 913 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

11
QtQlistWidgetEx/main.cpp Normal file
View 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();
}

View File

@ -0,0 +1,2 @@
<!DOCTYPE RCC>
<RCC version="1.0"/>

View File

@ -73,7 +73,15 @@
## 补充部分:补充较杂的知识点 ## 补充部分:补充较杂的知识点
#### 乱码相关: ### 使用Qt Creator的小技巧
- [小技巧Design设计师里无法拖拽action到toolbar里](https://blog.csdn.net/qq_33154343/article/details/100168170)
- [小技巧:设置`QToolBox`的每一页page的使用单独的布局`QTabWidget`同理)](https://mp.csdn.net/mdeditor/100185025#)
<br>
### 乱码相关:
- [ 输出乱码原因:古文码、口字码、符号码、问号码、棍拷码](https://blog.csdn.net/qq_33154343/article/details/99617767) - [ 输出乱码原因:古文码、口字码、符号码、问号码、棍拷码](https://blog.csdn.net/qq_33154343/article/details/99617767)
- [qt5 中文乱码解决](https://blog.csdn.net/qq_33154343/article/details/95344312) - [qt5 中文乱码解决](https://blog.csdn.net/qq_33154343/article/details/95344312)
@ -90,9 +98,12 @@
<br> <br>
## Qt推倒重学系列--总目录[【github.io】](https://touwoyimuli.github.io/): ## 同步github.io博客
**github.io的同步总目录**[WiKi](https://github.com/touwoyimuli/QtExamples/wiki/Qt%E6%8E%A8%E5%80%92%E9%87%8D%E5%AD%A6%E7%B3%BB%E5%88%97--%E6%80%BB%E7%9B%AE%E5%BD%95%E3%80%90github.io%E3%80%91) - github.io的同步总目录[WiKi](https://github.com/touwoyimuli/QtExamples/wiki/Qt%E6%8E%A8%E5%80%92%E9%87%8D%E5%AD%A6%E7%B3%BB%E5%88%97--%E6%80%BB%E7%9B%AE%E5%BD%95%E3%80%90github.io%E3%80%91)
- Qt Creator使用小技巧[WiKi](https://github.com/touwoyimuli/QtExamples/wiki/Qt%E4%BD%BF%E7%94%A8%E7%9A%84%E4%B8%80%E4%B8%8B%E5%B0%8F%E6%8A%80%E5%B7%A7)
<br> <br>
@ -104,7 +115,7 @@
## 互助 ## 互助
若是帮助到了你,可以点击该项目的的<img src="https://raw.githubusercontent.com/touwoyimuli/FigureBed/master/project_log/20190709023321.png" height="18" width="18"/> **Star**<img src="https://raw.githubusercontent.com/touwoyimuli/FigureBed/master/project_log/20190709023317.png" height="18" width="18"/> **Fork** 的两个图标,方便抬手之间,表示点个赞,手有余香 若是帮助到了你,或者觉得有用,可以点击该项目的的<img src="https://raw.githubusercontent.com/touwoyimuli/FigureBed/master/project_log/20190709023321.png" height="18" width="18"/> **Star**<img src="https://raw.githubusercontent.com/touwoyimuli/FigureBed/master/project_log/20190709023317.png" height="18" width="18"/> **Fork** 的两个图标,方便抬手之间,表示点个赞,手有余香
<br> <br>