├── .gitignore ├── LICENSE ├── QtAnimatedTextEdit ├── QtAnimatedTextEdit.cpp ├── QtAnimatedTextEdit.gif ├── QtAnimatedTextEdit.h ├── QtAnimatedTextEdit.pro ├── main.cpp └── show.gif ├── QtAnimation ├── QtAnimation.cpp ├── QtAnimation.h ├── QtAnimation.pro ├── QtAnimation.ui ├── main.cpp └── show.gif ├── QtDialog ├── QtDialog.cpp ├── QtDialog.h ├── QtDialog.pro ├── QtDialog.qrc ├── QtDialog.ui ├── images │ ├── close(1).png │ ├── close(2).png │ ├── close(3).png │ ├── close.png │ ├── max(1).png │ ├── max(2).png │ ├── max(3).png │ ├── max.png │ ├── min(1).png │ ├── min(2).png │ ├── min(3).png │ ├── min.png │ ├── restore(1).png │ ├── restore(2).png │ ├── restore(3).png │ └── restore.png ├── main.cpp └── show.png ├── QtFontAwesome ├── Font │ ├── font-awesome.css │ └── fontawesome-webfont.ttf ├── QtFontAwesome.cpp ├── QtFontAwesome.h ├── QtFontAwesome.pro ├── QtFontAwesome.qrc ├── QtFontAwesome.ui ├── main.cpp └── show.jpg ├── QtGrayImage ├── 1.png ├── QtGrayImage.cpp ├── QtGrayImage.h ├── QtGrayImage.pro ├── QtGrayImage.qrc ├── QtGrayImage.ui ├── main.cpp └── show.png ├── QtLanguage ├── QtLanguage.cpp ├── QtLanguage.h ├── QtLanguage.pro ├── QtLanguage.qrc ├── QtLanguage.ui ├── en_US.qm ├── en_US.ts ├── image1.png ├── image2.png ├── main.cpp ├── show1.png ├── show2.png ├── zh_CN.qm └── zh_CN.ts ├── QtLoadRcc ├── Face.png ├── QtLoadRcc.cpp ├── QtLoadRcc.h ├── QtLoadRcc.pro ├── QtLoadRcc.qrc ├── QtLoadRcc.rcc ├── QtLoadRcc.ui ├── main.cpp ├── makeRcc.bat └── show.gif ├── QtQssButton ├── ButtonHover.png ├── ButtonNormal.png ├── ButtonPressed.png ├── QtQssButton.cpp ├── QtQssButton.h ├── QtQssButton.pro ├── QtQssButton.qrc ├── QtQssButton.qss ├── QtQssButton.ui ├── main.cpp └── show.gif ├── QtStackedWidget ├── QtStackedWidget.cpp ├── QtStackedWidget.h ├── QtStackedWidget.pro ├── QtStackedWidget.ui ├── main.cpp └── show.gif ├── QtWidgetsExamples.jpg ├── QtWidgetsExamples.pro └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | *.user 4 | 5 | # Compiled Object files 6 | *.slo 7 | *.lo 8 | *.o 9 | *.obj 10 | 11 | # Precompiled Headers 12 | *.gch 13 | *.pch 14 | 15 | # Compiled Dynamic libraries 16 | 17 | # Fortran module files 18 | *.mod 19 | *.smod 20 | 21 | # Compiled Static libraries 22 | *.lai 23 | *.la 24 | *.a 25 | 26 | # Executables 27 | *.exe 28 | *.out 29 | *.app 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 zhengtianzuo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /QtAnimatedTextEdit/QtAnimatedTextEdit.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtAnimatedTextEdit.cpp 3 | *@brief 动画文本输入框 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtAnimatedTextEdit.h" 9 | 10 | AnimatedTextEdit::AnimatedTextEdit(QWidget * e) 11 | : QTextEdit(e) 12 | { 13 | 14 | } 15 | 16 | AnimatedTextEdit::~AnimatedTextEdit() 17 | { 18 | QHash::const_iterator i; 19 | for (i = m_hasUrls.constBegin(); i != m_hasUrls.constEnd(); ++i) 20 | { 21 | delete i.key(); 22 | } 23 | } 24 | 25 | void AnimatedTextEdit::addAnimation( 26 | const QUrl& url, const QString& fileName) 27 | { 28 | //插入Html描述的图片 29 | insertHtml(""); 30 | 31 | //判断是否是相同的图片 32 | if (m_lstUrls.contains(url)) 33 | { 34 | return; 35 | } 36 | else 37 | { 38 | m_lstUrls.append(url); 39 | } 40 | 41 | //创建QMovie以显示Gif 42 | QMovie* movie = new QMovie(this); 43 | movie->setFileName(fileName); 44 | movie->setCacheMode(QMovie::CacheNone); 45 | 46 | m_hasUrls.insert(movie, url); 47 | 48 | //绑定帧切换信号槽 49 | connect(movie, SIGNAL(frameChanged(int)), this, SLOT(subAnimate(int))); 50 | movie->start(); 51 | } 52 | void AnimatedTextEdit::subAnimate(int a) 53 | { 54 | //使用QMovie中的当前帧替换掉富文本中的图片元素 55 | QMovie* movie = qobject_cast(sender()); 56 | document()->addResource(QTextDocument::ImageResource, 57 | m_hasUrls.value(movie), movie->currentPixmap()); 58 | setLineWrapColumnOrWidth(lineWrapColumnOrWidth()); 59 | } 60 | Window::Window(QWidget *p) 61 | :QWidget(p) 62 | { 63 | this->setMinimumHeight(400); 64 | this->setMinimumWidth(400);\ 65 | this->setWindowTitle(QStringLiteral("Qt富文本框插入Gif动画")); 66 | 67 | QVBoxLayout *layout = new QVBoxLayout(this); 68 | m_btnAdd = new QPushButton(QStringLiteral("添加一个Gif动画")); 69 | m_editAnimated = new AnimatedTextEdit(); 70 | 71 | layout->addWidget(m_btnAdd); 72 | layout->addWidget(m_editAnimated); 73 | 74 | this->setLayout(layout); 75 | connect(m_btnAdd, SIGNAL(clicked()), this, SLOT(btnAddClicked())); 76 | } 77 | 78 | void Window::btnAddClicked() 79 | { 80 | m_editAnimated->addAnimation( 81 | QUrl("yyy"), "QtAnimatedTextEdit.gif"); 82 | } 83 | -------------------------------------------------------------------------------- /QtAnimatedTextEdit/QtAnimatedTextEdit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtAnimatedTextEdit/QtAnimatedTextEdit.gif -------------------------------------------------------------------------------- /QtAnimatedTextEdit/QtAnimatedTextEdit.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtAnimatedTextEdit.h 3 | *@brief 动画文本输入框 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | class AnimatedTextEdit : public QTextEdit 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | AnimatedTextEdit(QWidget * p = 0); 21 | ~AnimatedTextEdit(); 22 | void addAnimation(const QUrl& url, const QString& fileName); 23 | 24 | private slots: 25 | void subAnimate(int); 26 | 27 | private: 28 | QList m_lstUrls; 29 | QHash m_hasUrls; 30 | }; 31 | 32 | class Window : public QWidget 33 | { 34 | Q_OBJECT 35 | public: 36 | Window(QWidget *p = 0); 37 | 38 | private: 39 | QPushButton *m_btnAdd; 40 | AnimatedTextEdit *m_editAnimated; 41 | 42 | public slots: 43 | void btnAddClicked(); 44 | }; 45 | -------------------------------------------------------------------------------- /QtAnimatedTextEdit/QtAnimatedTextEdit.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | HEADERS += \ 10 | QtAnimatedTextEdit.h 11 | 12 | SOURCES += \ 13 | main.cpp \ 14 | QtAnimatedTextEdit.cpp 15 | -------------------------------------------------------------------------------- /QtAnimatedTextEdit/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | 9 | #include 10 | #include 11 | #include "QtAnimatedTextEdit.h" 12 | 13 | int main(int argc, char* argv[]) 14 | { 15 | QApplication app(argc, argv); 16 | Window window; 17 | window.show(); 18 | return app.exec(); 19 | } 20 | -------------------------------------------------------------------------------- /QtAnimatedTextEdit/show.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtAnimatedTextEdit/show.gif -------------------------------------------------------------------------------- /QtAnimation/QtAnimation.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtAnimation.cpp 3 | *@brief 动画控制效果 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtAnimation.h" 9 | #include "ui_QtAnimation.h" 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | QtAnimation::QtAnimation(QWidget *parent) : 17 | QDialog(parent), 18 | ui(new Ui::QtAnimation) 19 | { 20 | ui->setupUi(this); 21 | 22 | QPushButton *pButton = ui->pushButton; 23 | 24 | //创建状态机 25 | QStateMachine *pStateMachine = new QStateMachine(this); 26 | 27 | //设置起始状态 28 | QState *pStartState = new QState(pStateMachine); 29 | //绑定属性 30 | pStartState->assignProperty(pButton, "geometry", 31 | QRect(10,(this->height()-pButton->height())/2,pButton->width(),pButton->height())); 32 | //设置为起始状态 33 | pStateMachine->setInitialState(pStartState); 34 | 35 | //设置结束状态 36 | QState *pEndState = new QState(pStateMachine); 37 | //绑定属性 38 | pEndState->assignProperty(pButton, "geometry", 39 | QRect(this->width()-pButton->width()*2-10, 40 | (this->height()-pButton->height()*2)/2, 41 | pButton->width()*2,pButton->height()*2)); 42 | 43 | //设置动画效果 44 | QPropertyAnimation *pPropertyAnimation = new QPropertyAnimation(pButton, "geometry"); 45 | pPropertyAnimation->setDuration(2000); 46 | pPropertyAnimation->setEasingCurve(QEasingCurve::OutBounce); 47 | 48 | //绑定动画信号槽 49 | QSignalTransition *pTransitionStart2End = pStartState->addTransition(pButton, SIGNAL(clicked()), pEndState); 50 | pTransitionStart2End->addAnimation(pPropertyAnimation); 51 | 52 | QSignalTransition *pTransitionEnd2Start = pEndState->addTransition(pButton, SIGNAL(clicked()), pStartState); 53 | pTransitionEnd2Start->addAnimation(pPropertyAnimation); 54 | 55 | //开启状态机 56 | pStateMachine->start(); 57 | } 58 | 59 | QtAnimation::~QtAnimation() 60 | { 61 | delete ui; 62 | } 63 | -------------------------------------------------------------------------------- /QtAnimation/QtAnimation.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtAnimation.h 3 | *@brief 动画控制效果 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | 11 | namespace Ui { 12 | class QtAnimation; 13 | } 14 | 15 | class QtAnimation : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit QtAnimation(QWidget *parent = 0); 21 | ~QtAnimation(); 22 | 23 | private: 24 | Ui::QtAnimation *ui; 25 | }; 26 | -------------------------------------------------------------------------------- /QtAnimation/QtAnimation.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | SOURCES += main.cpp\ 10 | QtAnimation.cpp 11 | 12 | HEADERS += QtAnimation.h 13 | 14 | FORMS += QtAnimation.ui 15 | -------------------------------------------------------------------------------- /QtAnimation/QtAnimation.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | QtAnimation 4 | 5 | 6 | 7 | 0 8 | 0 9 | 800 10 | 600 11 | 12 | 13 | 14 | Qt动画控制效果 15 | 16 | 17 | 18 | 19 | 10 20 | 280 21 | 60 22 | 40 23 | 24 | 25 | 26 | 动一动 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /QtAnimation/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtAnimation.h" 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | QtAnimation w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /QtAnimation/show.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtAnimation/show.gif -------------------------------------------------------------------------------- /QtDialog/QtDialog.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtDialog.cpp 3 | *@brief 自定义窗体系统按钮 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtDialog.h" 9 | #include "ui_QtDialog.h" 10 | 11 | QtDialog::QtDialog(QWidget *parent) : 12 | QDialog(parent), 13 | ui(new Ui::QtDialog) 14 | { 15 | ui->setupUi(this); 16 | this->setWindowFlags(Qt::FramelessWindowHint); 17 | connect(ui->toolButtonClose,SIGNAL(clicked()),this,SLOT(dialogClose())); 18 | connect(ui->toolButtonMax,SIGNAL(clicked()),this,SLOT(dialogShowMaximized())); 19 | connect(ui->toolButtonMin,SIGNAL(clicked()),this,SLOT(dialogShowMinimized())); 20 | 21 | bool bMaximize = this->isMaximized(); 22 | ui->toolButtonMax->setProperty("maximizeProperty", bMaximize ? "restore" : "maximize"); 23 | ui->toolButtonMax->style()->unpolish(ui->toolButtonMax); 24 | ui->toolButtonMax->style()->polish(ui->toolButtonMax); 25 | ui->toolButtonMax->update(); 26 | } 27 | 28 | QtDialog::~QtDialog() 29 | { 30 | delete ui; 31 | } 32 | 33 | void QtDialog::dialogClose() 34 | { 35 | close(); 36 | } 37 | 38 | void QtDialog::dialogShowMaximized() 39 | { 40 | bool bMaximize = this->isMaximized(); 41 | if (bMaximize) 42 | { 43 | this->showNormal(); 44 | } 45 | else 46 | { 47 | this->showMaximized(); 48 | } 49 | bMaximize = this->isMaximized(); 50 | ui->toolButtonMax->setProperty("maximizeProperty", bMaximize ? "restore" : "maximize"); 51 | ui->toolButtonMax->style()->unpolish(ui->toolButtonMax); 52 | ui->toolButtonMax->style()->polish(ui->toolButtonMax); 53 | ui->toolButtonMax->update(); 54 | } 55 | 56 | void QtDialog::dialogShowMinimized() 57 | { 58 | this->showMinimized(); 59 | } 60 | -------------------------------------------------------------------------------- /QtDialog/QtDialog.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtDialog.h 3 | *@brief 自定义窗体系统按钮 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | 11 | namespace Ui { 12 | class QtDialog; 13 | } 14 | 15 | class QtDialog : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit QtDialog(QWidget *parent = 0); 21 | ~QtDialog(); 22 | 23 | public slots: 24 | void dialogClose(); 25 | void dialogShowMaximized(); 26 | void dialogShowMinimized(); 27 | 28 | private: 29 | Ui::QtDialog *ui; 30 | }; 31 | -------------------------------------------------------------------------------- /QtDialog/QtDialog.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | SOURCES += main.cpp\ 10 | QtDialog.cpp 11 | 12 | HEADERS += QtDialog.h 13 | 14 | FORMS += QtDialog.ui 15 | 16 | RESOURCES += \ 17 | QtDialog.qrc 18 | -------------------------------------------------------------------------------- /QtDialog/QtDialog.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/close(1).png 4 | images/close(2).png 5 | images/close(3).png 6 | images/close.png 7 | images/max(1).png 8 | images/max(2).png 9 | images/max(3).png 10 | images/max.png 11 | images/min(1).png 12 | images/min(2).png 13 | images/min(3).png 14 | images/min.png 15 | images/restore(1).png 16 | images/restore(2).png 17 | images/restore(3).png 18 | images/restore.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /QtDialog/QtDialog.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | QtDialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 540 10 | 320 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | 21 | 540 22 | 320 23 | 24 | 25 | 26 | 27 | 540 28 | 320 29 | 30 | 31 | 32 | QtDialog 33 | 34 | 35 | 36 | 0 37 | 38 | 39 | 0 40 | 41 | 42 | 0 43 | 44 | 45 | 0 46 | 47 | 48 | 0 49 | 50 | 51 | 52 | 53 | 0 54 | 55 | 56 | 57 | 58 | 10 59 | 60 | 61 | 10 62 | 63 | 64 | 10 65 | 66 | 67 | 10 68 | 69 | 70 | 10 71 | 72 | 73 | 74 | 75 | Qt::Vertical 76 | 77 | 78 | 79 | 20 80 | 40 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 0 91 | 92 | 93 | 10 94 | 95 | 96 | 10 97 | 98 | 99 | 10 100 | 101 | 102 | 10 103 | 104 | 105 | 106 | 107 | Qt::Horizontal 108 | 109 | 110 | 111 | 40 112 | 20 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 24 122 | 24 123 | 124 | 125 | 126 | 127 | 24 128 | 24 129 | 130 | 131 | 132 | QToolButton#toolButtonMin{ 133 | border-image: url(:/images/min(1).png); 134 | } 135 | 136 | QToolButton#toolButtonMin:hover{ 137 | border-image: url(:/images/min(3).png); 138 | } 139 | 140 | QToolButton#toolButtonMin:pressed{ 141 | border-image: url(:/images/min.png); 142 | } 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 24 155 | 24 156 | 157 | 158 | 159 | 160 | 24 161 | 24 162 | 163 | 164 | 165 | QToolButton#toolButtonMax[maximizeProperty="maximize"]{ 166 | border-image: url(:/images/max(1).png); 167 | } 168 | 169 | QToolButton#toolButtonMax[maximizeProperty="maximize"]:hover{ 170 | border-image: url(:/images/max(3).png); 171 | } 172 | 173 | QToolButton#toolButtonMax[maximizeProperty="maximize"]:pressed{ 174 | border-image: url(:/images/max.png); 175 | } 176 | 177 | QToolButton#toolButtonMax[maximizeProperty="restore"]{ 178 | border-image: url(:/images/restore(1).png); 179 | } 180 | 181 | QToolButton#toolButtonMax[maximizeProperty="restore"]:hover{ 182 | border-image: url(:/images/restore(3).png); 183 | } 184 | 185 | QToolButton#toolButtonMax[maximizeProperty="restore"]:pressed{ 186 | border-image: url(:/images/restore.png); 187 | } 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 0 199 | 0 200 | 201 | 202 | 203 | 204 | 24 205 | 24 206 | 207 | 208 | 209 | 210 | 24 211 | 24 212 | 213 | 214 | 215 | false 216 | 217 | 218 | QToolButton#toolButtonClose{ 219 | border-image: url(:/images/close(1).png); 220 | } 221 | 222 | QToolButton#toolButtonClose:hover{ 223 | border-image: url(:/images/close(3).png); 224 | } 225 | 226 | QToolButton#toolButtonClose:pressed{ 227 | border-image: url(:/images/close.png); 228 | } 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | -------------------------------------------------------------------------------- /QtDialog/images/close(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/close(1).png -------------------------------------------------------------------------------- /QtDialog/images/close(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/close(2).png -------------------------------------------------------------------------------- /QtDialog/images/close(3).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/close(3).png -------------------------------------------------------------------------------- /QtDialog/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/close.png -------------------------------------------------------------------------------- /QtDialog/images/max(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/max(1).png -------------------------------------------------------------------------------- /QtDialog/images/max(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/max(2).png -------------------------------------------------------------------------------- /QtDialog/images/max(3).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/max(3).png -------------------------------------------------------------------------------- /QtDialog/images/max.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/max.png -------------------------------------------------------------------------------- /QtDialog/images/min(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/min(1).png -------------------------------------------------------------------------------- /QtDialog/images/min(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/min(2).png -------------------------------------------------------------------------------- /QtDialog/images/min(3).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/min(3).png -------------------------------------------------------------------------------- /QtDialog/images/min.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/min.png -------------------------------------------------------------------------------- /QtDialog/images/restore(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/restore(1).png -------------------------------------------------------------------------------- /QtDialog/images/restore(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/restore(2).png -------------------------------------------------------------------------------- /QtDialog/images/restore(3).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/restore(3).png -------------------------------------------------------------------------------- /QtDialog/images/restore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/images/restore.png -------------------------------------------------------------------------------- /QtDialog/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtDialog.h" 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | QtDialog w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /QtDialog/show.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtDialog/show.png -------------------------------------------------------------------------------- /QtFontAwesome/Font/font-awesome.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | /* FONT PATH 6 | * -------------------------- */ 7 | @font-face { 8 | font-family: 'FontAwesome'; 9 | src: url('../fonts/fontawesome-webfont.eot?v=4.7.0'); 10 | src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg'); 11 | font-weight: normal; 12 | font-style: normal; 13 | } 14 | .fa { 15 | display: inline-block; 16 | font: normal normal normal 14px/1 FontAwesome; 17 | font-size: inherit; 18 | text-rendering: auto; 19 | -webkit-font-smoothing: antialiased; 20 | -moz-osx-font-smoothing: grayscale; 21 | } 22 | /* makes the font 33% larger relative to the icon container */ 23 | .fa-lg { 24 | font-size: 1.33333333em; 25 | line-height: 0.75em; 26 | vertical-align: -15%; 27 | } 28 | .fa-2x { 29 | font-size: 2em; 30 | } 31 | .fa-3x { 32 | font-size: 3em; 33 | } 34 | .fa-4x { 35 | font-size: 4em; 36 | } 37 | .fa-5x { 38 | font-size: 5em; 39 | } 40 | .fa-fw { 41 | width: 1.28571429em; 42 | text-align: center; 43 | } 44 | .fa-ul { 45 | padding-left: 0; 46 | margin-left: 2.14285714em; 47 | list-style-type: none; 48 | } 49 | .fa-ul > li { 50 | position: relative; 51 | } 52 | .fa-li { 53 | position: absolute; 54 | left: -2.14285714em; 55 | width: 2.14285714em; 56 | top: 0.14285714em; 57 | text-align: center; 58 | } 59 | .fa-li.fa-lg { 60 | left: -1.85714286em; 61 | } 62 | .fa-border { 63 | padding: .2em .25em .15em; 64 | border: solid 0.08em #eeeeee; 65 | border-radius: .1em; 66 | } 67 | .fa-pull-left { 68 | float: left; 69 | } 70 | .fa-pull-right { 71 | float: right; 72 | } 73 | .fa.fa-pull-left { 74 | margin-right: .3em; 75 | } 76 | .fa.fa-pull-right { 77 | margin-left: .3em; 78 | } 79 | /* Deprecated as of 4.4.0 */ 80 | .pull-right { 81 | float: right; 82 | } 83 | .pull-left { 84 | float: left; 85 | } 86 | .fa.pull-left { 87 | margin-right: .3em; 88 | } 89 | .fa.pull-right { 90 | margin-left: .3em; 91 | } 92 | .fa-spin { 93 | -webkit-animation: fa-spin 2s infinite linear; 94 | animation: fa-spin 2s infinite linear; 95 | } 96 | .fa-pulse { 97 | -webkit-animation: fa-spin 1s infinite steps(8); 98 | animation: fa-spin 1s infinite steps(8); 99 | } 100 | @-webkit-keyframes fa-spin { 101 | 0% { 102 | -webkit-transform: rotate(0deg); 103 | transform: rotate(0deg); 104 | } 105 | 100% { 106 | -webkit-transform: rotate(359deg); 107 | transform: rotate(359deg); 108 | } 109 | } 110 | @keyframes fa-spin { 111 | 0% { 112 | -webkit-transform: rotate(0deg); 113 | transform: rotate(0deg); 114 | } 115 | 100% { 116 | -webkit-transform: rotate(359deg); 117 | transform: rotate(359deg); 118 | } 119 | } 120 | .fa-rotate-90 { 121 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; 122 | -webkit-transform: rotate(90deg); 123 | -ms-transform: rotate(90deg); 124 | transform: rotate(90deg); 125 | } 126 | .fa-rotate-180 { 127 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; 128 | -webkit-transform: rotate(180deg); 129 | -ms-transform: rotate(180deg); 130 | transform: rotate(180deg); 131 | } 132 | .fa-rotate-270 { 133 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; 134 | -webkit-transform: rotate(270deg); 135 | -ms-transform: rotate(270deg); 136 | transform: rotate(270deg); 137 | } 138 | .fa-flip-horizontal { 139 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; 140 | -webkit-transform: scale(-1, 1); 141 | -ms-transform: scale(-1, 1); 142 | transform: scale(-1, 1); 143 | } 144 | .fa-flip-vertical { 145 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; 146 | -webkit-transform: scale(1, -1); 147 | -ms-transform: scale(1, -1); 148 | transform: scale(1, -1); 149 | } 150 | :root .fa-rotate-90, 151 | :root .fa-rotate-180, 152 | :root .fa-rotate-270, 153 | :root .fa-flip-horizontal, 154 | :root .fa-flip-vertical { 155 | filter: none; 156 | } 157 | .fa-stack { 158 | position: relative; 159 | display: inline-block; 160 | width: 2em; 161 | height: 2em; 162 | line-height: 2em; 163 | vertical-align: middle; 164 | } 165 | .fa-stack-1x, 166 | .fa-stack-2x { 167 | position: absolute; 168 | left: 0; 169 | width: 100%; 170 | text-align: center; 171 | } 172 | .fa-stack-1x { 173 | line-height: inherit; 174 | } 175 | .fa-stack-2x { 176 | font-size: 2em; 177 | } 178 | .fa-inverse { 179 | color: #ffffff; 180 | } 181 | /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen 182 | readers do not read off random characters that represent icons */ 183 | .fa-glass:before { 184 | content: "\f000"; 185 | } 186 | .fa-music:before { 187 | content: "\f001"; 188 | } 189 | .fa-search:before { 190 | content: "\f002"; 191 | } 192 | .fa-envelope-o:before { 193 | content: "\f003"; 194 | } 195 | .fa-heart:before { 196 | content: "\f004"; 197 | } 198 | .fa-star:before { 199 | content: "\f005"; 200 | } 201 | .fa-star-o:before { 202 | content: "\f006"; 203 | } 204 | .fa-user:before { 205 | content: "\f007"; 206 | } 207 | .fa-film:before { 208 | content: "\f008"; 209 | } 210 | .fa-th-large:before { 211 | content: "\f009"; 212 | } 213 | .fa-th:before { 214 | content: "\f00a"; 215 | } 216 | .fa-th-list:before { 217 | content: "\f00b"; 218 | } 219 | .fa-check:before { 220 | content: "\f00c"; 221 | } 222 | .fa-remove:before, 223 | .fa-close:before, 224 | .fa-times:before { 225 | content: "\f00d"; 226 | } 227 | .fa-search-plus:before { 228 | content: "\f00e"; 229 | } 230 | .fa-search-minus:before { 231 | content: "\f010"; 232 | } 233 | .fa-power-off:before { 234 | content: "\f011"; 235 | } 236 | .fa-signal:before { 237 | content: "\f012"; 238 | } 239 | .fa-gear:before, 240 | .fa-cog:before { 241 | content: "\f013"; 242 | } 243 | .fa-trash-o:before { 244 | content: "\f014"; 245 | } 246 | .fa-home:before { 247 | content: "\f015"; 248 | } 249 | .fa-file-o:before { 250 | content: "\f016"; 251 | } 252 | .fa-clock-o:before { 253 | content: "\f017"; 254 | } 255 | .fa-road:before { 256 | content: "\f018"; 257 | } 258 | .fa-download:before { 259 | content: "\f019"; 260 | } 261 | .fa-arrow-circle-o-down:before { 262 | content: "\f01a"; 263 | } 264 | .fa-arrow-circle-o-up:before { 265 | content: "\f01b"; 266 | } 267 | .fa-inbox:before { 268 | content: "\f01c"; 269 | } 270 | .fa-play-circle-o:before { 271 | content: "\f01d"; 272 | } 273 | .fa-rotate-right:before, 274 | .fa-repeat:before { 275 | content: "\f01e"; 276 | } 277 | .fa-refresh:before { 278 | content: "\f021"; 279 | } 280 | .fa-list-alt:before { 281 | content: "\f022"; 282 | } 283 | .fa-lock:before { 284 | content: "\f023"; 285 | } 286 | .fa-flag:before { 287 | content: "\f024"; 288 | } 289 | .fa-headphones:before { 290 | content: "\f025"; 291 | } 292 | .fa-volume-off:before { 293 | content: "\f026"; 294 | } 295 | .fa-volume-down:before { 296 | content: "\f027"; 297 | } 298 | .fa-volume-up:before { 299 | content: "\f028"; 300 | } 301 | .fa-qrcode:before { 302 | content: "\f029"; 303 | } 304 | .fa-barcode:before { 305 | content: "\f02a"; 306 | } 307 | .fa-tag:before { 308 | content: "\f02b"; 309 | } 310 | .fa-tags:before { 311 | content: "\f02c"; 312 | } 313 | .fa-book:before { 314 | content: "\f02d"; 315 | } 316 | .fa-bookmark:before { 317 | content: "\f02e"; 318 | } 319 | .fa-print:before { 320 | content: "\f02f"; 321 | } 322 | .fa-camera:before { 323 | content: "\f030"; 324 | } 325 | .fa-font:before { 326 | content: "\f031"; 327 | } 328 | .fa-bold:before { 329 | content: "\f032"; 330 | } 331 | .fa-italic:before { 332 | content: "\f033"; 333 | } 334 | .fa-text-height:before { 335 | content: "\f034"; 336 | } 337 | .fa-text-width:before { 338 | content: "\f035"; 339 | } 340 | .fa-align-left:before { 341 | content: "\f036"; 342 | } 343 | .fa-align-center:before { 344 | content: "\f037"; 345 | } 346 | .fa-align-right:before { 347 | content: "\f038"; 348 | } 349 | .fa-align-justify:before { 350 | content: "\f039"; 351 | } 352 | .fa-list:before { 353 | content: "\f03a"; 354 | } 355 | .fa-dedent:before, 356 | .fa-outdent:before { 357 | content: "\f03b"; 358 | } 359 | .fa-indent:before { 360 | content: "\f03c"; 361 | } 362 | .fa-video-camera:before { 363 | content: "\f03d"; 364 | } 365 | .fa-photo:before, 366 | .fa-image:before, 367 | .fa-picture-o:before { 368 | content: "\f03e"; 369 | } 370 | .fa-pencil:before { 371 | content: "\f040"; 372 | } 373 | .fa-map-marker:before { 374 | content: "\f041"; 375 | } 376 | .fa-adjust:before { 377 | content: "\f042"; 378 | } 379 | .fa-tint:before { 380 | content: "\f043"; 381 | } 382 | .fa-edit:before, 383 | .fa-pencil-square-o:before { 384 | content: "\f044"; 385 | } 386 | .fa-share-square-o:before { 387 | content: "\f045"; 388 | } 389 | .fa-check-square-o:before { 390 | content: "\f046"; 391 | } 392 | .fa-arrows:before { 393 | content: "\f047"; 394 | } 395 | .fa-step-backward:before { 396 | content: "\f048"; 397 | } 398 | .fa-fast-backward:before { 399 | content: "\f049"; 400 | } 401 | .fa-backward:before { 402 | content: "\f04a"; 403 | } 404 | .fa-play:before { 405 | content: "\f04b"; 406 | } 407 | .fa-pause:before { 408 | content: "\f04c"; 409 | } 410 | .fa-stop:before { 411 | content: "\f04d"; 412 | } 413 | .fa-forward:before { 414 | content: "\f04e"; 415 | } 416 | .fa-fast-forward:before { 417 | content: "\f050"; 418 | } 419 | .fa-step-forward:before { 420 | content: "\f051"; 421 | } 422 | .fa-eject:before { 423 | content: "\f052"; 424 | } 425 | .fa-chevron-left:before { 426 | content: "\f053"; 427 | } 428 | .fa-chevron-right:before { 429 | content: "\f054"; 430 | } 431 | .fa-plus-circle:before { 432 | content: "\f055"; 433 | } 434 | .fa-minus-circle:before { 435 | content: "\f056"; 436 | } 437 | .fa-times-circle:before { 438 | content: "\f057"; 439 | } 440 | .fa-check-circle:before { 441 | content: "\f058"; 442 | } 443 | .fa-question-circle:before { 444 | content: "\f059"; 445 | } 446 | .fa-info-circle:before { 447 | content: "\f05a"; 448 | } 449 | .fa-crosshairs:before { 450 | content: "\f05b"; 451 | } 452 | .fa-times-circle-o:before { 453 | content: "\f05c"; 454 | } 455 | .fa-check-circle-o:before { 456 | content: "\f05d"; 457 | } 458 | .fa-ban:before { 459 | content: "\f05e"; 460 | } 461 | .fa-arrow-left:before { 462 | content: "\f060"; 463 | } 464 | .fa-arrow-right:before { 465 | content: "\f061"; 466 | } 467 | .fa-arrow-up:before { 468 | content: "\f062"; 469 | } 470 | .fa-arrow-down:before { 471 | content: "\f063"; 472 | } 473 | .fa-mail-forward:before, 474 | .fa-share:before { 475 | content: "\f064"; 476 | } 477 | .fa-expand:before { 478 | content: "\f065"; 479 | } 480 | .fa-compress:before { 481 | content: "\f066"; 482 | } 483 | .fa-plus:before { 484 | content: "\f067"; 485 | } 486 | .fa-minus:before { 487 | content: "\f068"; 488 | } 489 | .fa-asterisk:before { 490 | content: "\f069"; 491 | } 492 | .fa-exclamation-circle:before { 493 | content: "\f06a"; 494 | } 495 | .fa-gift:before { 496 | content: "\f06b"; 497 | } 498 | .fa-leaf:before { 499 | content: "\f06c"; 500 | } 501 | .fa-fire:before { 502 | content: "\f06d"; 503 | } 504 | .fa-eye:before { 505 | content: "\f06e"; 506 | } 507 | .fa-eye-slash:before { 508 | content: "\f070"; 509 | } 510 | .fa-warning:before, 511 | .fa-exclamation-triangle:before { 512 | content: "\f071"; 513 | } 514 | .fa-plane:before { 515 | content: "\f072"; 516 | } 517 | .fa-calendar:before { 518 | content: "\f073"; 519 | } 520 | .fa-random:before { 521 | content: "\f074"; 522 | } 523 | .fa-comment:before { 524 | content: "\f075"; 525 | } 526 | .fa-magnet:before { 527 | content: "\f076"; 528 | } 529 | .fa-chevron-up:before { 530 | content: "\f077"; 531 | } 532 | .fa-chevron-down:before { 533 | content: "\f078"; 534 | } 535 | .fa-retweet:before { 536 | content: "\f079"; 537 | } 538 | .fa-shopping-cart:before { 539 | content: "\f07a"; 540 | } 541 | .fa-folder:before { 542 | content: "\f07b"; 543 | } 544 | .fa-folder-open:before { 545 | content: "\f07c"; 546 | } 547 | .fa-arrows-v:before { 548 | content: "\f07d"; 549 | } 550 | .fa-arrows-h:before { 551 | content: "\f07e"; 552 | } 553 | .fa-bar-chart-o:before, 554 | .fa-bar-chart:before { 555 | content: "\f080"; 556 | } 557 | .fa-twitter-square:before { 558 | content: "\f081"; 559 | } 560 | .fa-facebook-square:before { 561 | content: "\f082"; 562 | } 563 | .fa-camera-retro:before { 564 | content: "\f083"; 565 | } 566 | .fa-key:before { 567 | content: "\f084"; 568 | } 569 | .fa-gears:before, 570 | .fa-cogs:before { 571 | content: "\f085"; 572 | } 573 | .fa-comments:before { 574 | content: "\f086"; 575 | } 576 | .fa-thumbs-o-up:before { 577 | content: "\f087"; 578 | } 579 | .fa-thumbs-o-down:before { 580 | content: "\f088"; 581 | } 582 | .fa-star-half:before { 583 | content: "\f089"; 584 | } 585 | .fa-heart-o:before { 586 | content: "\f08a"; 587 | } 588 | .fa-sign-out:before { 589 | content: "\f08b"; 590 | } 591 | .fa-linkedin-square:before { 592 | content: "\f08c"; 593 | } 594 | .fa-thumb-tack:before { 595 | content: "\f08d"; 596 | } 597 | .fa-external-link:before { 598 | content: "\f08e"; 599 | } 600 | .fa-sign-in:before { 601 | content: "\f090"; 602 | } 603 | .fa-trophy:before { 604 | content: "\f091"; 605 | } 606 | .fa-github-square:before { 607 | content: "\f092"; 608 | } 609 | .fa-upload:before { 610 | content: "\f093"; 611 | } 612 | .fa-lemon-o:before { 613 | content: "\f094"; 614 | } 615 | .fa-phone:before { 616 | content: "\f095"; 617 | } 618 | .fa-square-o:before { 619 | content: "\f096"; 620 | } 621 | .fa-bookmark-o:before { 622 | content: "\f097"; 623 | } 624 | .fa-phone-square:before { 625 | content: "\f098"; 626 | } 627 | .fa-twitter:before { 628 | content: "\f099"; 629 | } 630 | .fa-facebook-f:before, 631 | .fa-facebook:before { 632 | content: "\f09a"; 633 | } 634 | .fa-github:before { 635 | content: "\f09b"; 636 | } 637 | .fa-unlock:before { 638 | content: "\f09c"; 639 | } 640 | .fa-credit-card:before { 641 | content: "\f09d"; 642 | } 643 | .fa-feed:before, 644 | .fa-rss:before { 645 | content: "\f09e"; 646 | } 647 | .fa-hdd-o:before { 648 | content: "\f0a0"; 649 | } 650 | .fa-bullhorn:before { 651 | content: "\f0a1"; 652 | } 653 | .fa-bell:before { 654 | content: "\f0f3"; 655 | } 656 | .fa-certificate:before { 657 | content: "\f0a3"; 658 | } 659 | .fa-hand-o-right:before { 660 | content: "\f0a4"; 661 | } 662 | .fa-hand-o-left:before { 663 | content: "\f0a5"; 664 | } 665 | .fa-hand-o-up:before { 666 | content: "\f0a6"; 667 | } 668 | .fa-hand-o-down:before { 669 | content: "\f0a7"; 670 | } 671 | .fa-arrow-circle-left:before { 672 | content: "\f0a8"; 673 | } 674 | .fa-arrow-circle-right:before { 675 | content: "\f0a9"; 676 | } 677 | .fa-arrow-circle-up:before { 678 | content: "\f0aa"; 679 | } 680 | .fa-arrow-circle-down:before { 681 | content: "\f0ab"; 682 | } 683 | .fa-globe:before { 684 | content: "\f0ac"; 685 | } 686 | .fa-wrench:before { 687 | content: "\f0ad"; 688 | } 689 | .fa-tasks:before { 690 | content: "\f0ae"; 691 | } 692 | .fa-filter:before { 693 | content: "\f0b0"; 694 | } 695 | .fa-briefcase:before { 696 | content: "\f0b1"; 697 | } 698 | .fa-arrows-alt:before { 699 | content: "\f0b2"; 700 | } 701 | .fa-group:before, 702 | .fa-users:before { 703 | content: "\f0c0"; 704 | } 705 | .fa-chain:before, 706 | .fa-link:before { 707 | content: "\f0c1"; 708 | } 709 | .fa-cloud:before { 710 | content: "\f0c2"; 711 | } 712 | .fa-flask:before { 713 | content: "\f0c3"; 714 | } 715 | .fa-cut:before, 716 | .fa-scissors:before { 717 | content: "\f0c4"; 718 | } 719 | .fa-copy:before, 720 | .fa-files-o:before { 721 | content: "\f0c5"; 722 | } 723 | .fa-paperclip:before { 724 | content: "\f0c6"; 725 | } 726 | .fa-save:before, 727 | .fa-floppy-o:before { 728 | content: "\f0c7"; 729 | } 730 | .fa-square:before { 731 | content: "\f0c8"; 732 | } 733 | .fa-navicon:before, 734 | .fa-reorder:before, 735 | .fa-bars:before { 736 | content: "\f0c9"; 737 | } 738 | .fa-list-ul:before { 739 | content: "\f0ca"; 740 | } 741 | .fa-list-ol:before { 742 | content: "\f0cb"; 743 | } 744 | .fa-strikethrough:before { 745 | content: "\f0cc"; 746 | } 747 | .fa-underline:before { 748 | content: "\f0cd"; 749 | } 750 | .fa-table:before { 751 | content: "\f0ce"; 752 | } 753 | .fa-magic:before { 754 | content: "\f0d0"; 755 | } 756 | .fa-truck:before { 757 | content: "\f0d1"; 758 | } 759 | .fa-pinterest:before { 760 | content: "\f0d2"; 761 | } 762 | .fa-pinterest-square:before { 763 | content: "\f0d3"; 764 | } 765 | .fa-google-plus-square:before { 766 | content: "\f0d4"; 767 | } 768 | .fa-google-plus:before { 769 | content: "\f0d5"; 770 | } 771 | .fa-money:before { 772 | content: "\f0d6"; 773 | } 774 | .fa-caret-down:before { 775 | content: "\f0d7"; 776 | } 777 | .fa-caret-up:before { 778 | content: "\f0d8"; 779 | } 780 | .fa-caret-left:before { 781 | content: "\f0d9"; 782 | } 783 | .fa-caret-right:before { 784 | content: "\f0da"; 785 | } 786 | .fa-columns:before { 787 | content: "\f0db"; 788 | } 789 | .fa-unsorted:before, 790 | .fa-sort:before { 791 | content: "\f0dc"; 792 | } 793 | .fa-sort-down:before, 794 | .fa-sort-desc:before { 795 | content: "\f0dd"; 796 | } 797 | .fa-sort-up:before, 798 | .fa-sort-asc:before { 799 | content: "\f0de"; 800 | } 801 | .fa-envelope:before { 802 | content: "\f0e0"; 803 | } 804 | .fa-linkedin:before { 805 | content: "\f0e1"; 806 | } 807 | .fa-rotate-left:before, 808 | .fa-undo:before { 809 | content: "\f0e2"; 810 | } 811 | .fa-legal:before, 812 | .fa-gavel:before { 813 | content: "\f0e3"; 814 | } 815 | .fa-dashboard:before, 816 | .fa-tachometer:before { 817 | content: "\f0e4"; 818 | } 819 | .fa-comment-o:before { 820 | content: "\f0e5"; 821 | } 822 | .fa-comments-o:before { 823 | content: "\f0e6"; 824 | } 825 | .fa-flash:before, 826 | .fa-bolt:before { 827 | content: "\f0e7"; 828 | } 829 | .fa-sitemap:before { 830 | content: "\f0e8"; 831 | } 832 | .fa-umbrella:before { 833 | content: "\f0e9"; 834 | } 835 | .fa-paste:before, 836 | .fa-clipboard:before { 837 | content: "\f0ea"; 838 | } 839 | .fa-lightbulb-o:before { 840 | content: "\f0eb"; 841 | } 842 | .fa-exchange:before { 843 | content: "\f0ec"; 844 | } 845 | .fa-cloud-download:before { 846 | content: "\f0ed"; 847 | } 848 | .fa-cloud-upload:before { 849 | content: "\f0ee"; 850 | } 851 | .fa-user-md:before { 852 | content: "\f0f0"; 853 | } 854 | .fa-stethoscope:before { 855 | content: "\f0f1"; 856 | } 857 | .fa-suitcase:before { 858 | content: "\f0f2"; 859 | } 860 | .fa-bell-o:before { 861 | content: "\f0a2"; 862 | } 863 | .fa-coffee:before { 864 | content: "\f0f4"; 865 | } 866 | .fa-cutlery:before { 867 | content: "\f0f5"; 868 | } 869 | .fa-file-text-o:before { 870 | content: "\f0f6"; 871 | } 872 | .fa-building-o:before { 873 | content: "\f0f7"; 874 | } 875 | .fa-hospital-o:before { 876 | content: "\f0f8"; 877 | } 878 | .fa-ambulance:before { 879 | content: "\f0f9"; 880 | } 881 | .fa-medkit:before { 882 | content: "\f0fa"; 883 | } 884 | .fa-fighter-jet:before { 885 | content: "\f0fb"; 886 | } 887 | .fa-beer:before { 888 | content: "\f0fc"; 889 | } 890 | .fa-h-square:before { 891 | content: "\f0fd"; 892 | } 893 | .fa-plus-square:before { 894 | content: "\f0fe"; 895 | } 896 | .fa-angle-double-left:before { 897 | content: "\f100"; 898 | } 899 | .fa-angle-double-right:before { 900 | content: "\f101"; 901 | } 902 | .fa-angle-double-up:before { 903 | content: "\f102"; 904 | } 905 | .fa-angle-double-down:before { 906 | content: "\f103"; 907 | } 908 | .fa-angle-left:before { 909 | content: "\f104"; 910 | } 911 | .fa-angle-right:before { 912 | content: "\f105"; 913 | } 914 | .fa-angle-up:before { 915 | content: "\f106"; 916 | } 917 | .fa-angle-down:before { 918 | content: "\f107"; 919 | } 920 | .fa-desktop:before { 921 | content: "\f108"; 922 | } 923 | .fa-laptop:before { 924 | content: "\f109"; 925 | } 926 | .fa-tablet:before { 927 | content: "\f10a"; 928 | } 929 | .fa-mobile-phone:before, 930 | .fa-mobile:before { 931 | content: "\f10b"; 932 | } 933 | .fa-circle-o:before { 934 | content: "\f10c"; 935 | } 936 | .fa-quote-left:before { 937 | content: "\f10d"; 938 | } 939 | .fa-quote-right:before { 940 | content: "\f10e"; 941 | } 942 | .fa-spinner:before { 943 | content: "\f110"; 944 | } 945 | .fa-circle:before { 946 | content: "\f111"; 947 | } 948 | .fa-mail-reply:before, 949 | .fa-reply:before { 950 | content: "\f112"; 951 | } 952 | .fa-github-alt:before { 953 | content: "\f113"; 954 | } 955 | .fa-folder-o:before { 956 | content: "\f114"; 957 | } 958 | .fa-folder-open-o:before { 959 | content: "\f115"; 960 | } 961 | .fa-smile-o:before { 962 | content: "\f118"; 963 | } 964 | .fa-frown-o:before { 965 | content: "\f119"; 966 | } 967 | .fa-meh-o:before { 968 | content: "\f11a"; 969 | } 970 | .fa-gamepad:before { 971 | content: "\f11b"; 972 | } 973 | .fa-keyboard-o:before { 974 | content: "\f11c"; 975 | } 976 | .fa-flag-o:before { 977 | content: "\f11d"; 978 | } 979 | .fa-flag-checkered:before { 980 | content: "\f11e"; 981 | } 982 | .fa-terminal:before { 983 | content: "\f120"; 984 | } 985 | .fa-code:before { 986 | content: "\f121"; 987 | } 988 | .fa-mail-reply-all:before, 989 | .fa-reply-all:before { 990 | content: "\f122"; 991 | } 992 | .fa-star-half-empty:before, 993 | .fa-star-half-full:before, 994 | .fa-star-half-o:before { 995 | content: "\f123"; 996 | } 997 | .fa-location-arrow:before { 998 | content: "\f124"; 999 | } 1000 | .fa-crop:before { 1001 | content: "\f125"; 1002 | } 1003 | .fa-code-fork:before { 1004 | content: "\f126"; 1005 | } 1006 | .fa-unlink:before, 1007 | .fa-chain-broken:before { 1008 | content: "\f127"; 1009 | } 1010 | .fa-question:before { 1011 | content: "\f128"; 1012 | } 1013 | .fa-info:before { 1014 | content: "\f129"; 1015 | } 1016 | .fa-exclamation:before { 1017 | content: "\f12a"; 1018 | } 1019 | .fa-superscript:before { 1020 | content: "\f12b"; 1021 | } 1022 | .fa-subscript:before { 1023 | content: "\f12c"; 1024 | } 1025 | .fa-eraser:before { 1026 | content: "\f12d"; 1027 | } 1028 | .fa-puzzle-piece:before { 1029 | content: "\f12e"; 1030 | } 1031 | .fa-microphone:before { 1032 | content: "\f130"; 1033 | } 1034 | .fa-microphone-slash:before { 1035 | content: "\f131"; 1036 | } 1037 | .fa-shield:before { 1038 | content: "\f132"; 1039 | } 1040 | .fa-calendar-o:before { 1041 | content: "\f133"; 1042 | } 1043 | .fa-fire-extinguisher:before { 1044 | content: "\f134"; 1045 | } 1046 | .fa-rocket:before { 1047 | content: "\f135"; 1048 | } 1049 | .fa-maxcdn:before { 1050 | content: "\f136"; 1051 | } 1052 | .fa-chevron-circle-left:before { 1053 | content: "\f137"; 1054 | } 1055 | .fa-chevron-circle-right:before { 1056 | content: "\f138"; 1057 | } 1058 | .fa-chevron-circle-up:before { 1059 | content: "\f139"; 1060 | } 1061 | .fa-chevron-circle-down:before { 1062 | content: "\f13a"; 1063 | } 1064 | .fa-html5:before { 1065 | content: "\f13b"; 1066 | } 1067 | .fa-css3:before { 1068 | content: "\f13c"; 1069 | } 1070 | .fa-anchor:before { 1071 | content: "\f13d"; 1072 | } 1073 | .fa-unlock-alt:before { 1074 | content: "\f13e"; 1075 | } 1076 | .fa-bullseye:before { 1077 | content: "\f140"; 1078 | } 1079 | .fa-ellipsis-h:before { 1080 | content: "\f141"; 1081 | } 1082 | .fa-ellipsis-v:before { 1083 | content: "\f142"; 1084 | } 1085 | .fa-rss-square:before { 1086 | content: "\f143"; 1087 | } 1088 | .fa-play-circle:before { 1089 | content: "\f144"; 1090 | } 1091 | .fa-ticket:before { 1092 | content: "\f145"; 1093 | } 1094 | .fa-minus-square:before { 1095 | content: "\f146"; 1096 | } 1097 | .fa-minus-square-o:before { 1098 | content: "\f147"; 1099 | } 1100 | .fa-level-up:before { 1101 | content: "\f148"; 1102 | } 1103 | .fa-level-down:before { 1104 | content: "\f149"; 1105 | } 1106 | .fa-check-square:before { 1107 | content: "\f14a"; 1108 | } 1109 | .fa-pencil-square:before { 1110 | content: "\f14b"; 1111 | } 1112 | .fa-external-link-square:before { 1113 | content: "\f14c"; 1114 | } 1115 | .fa-share-square:before { 1116 | content: "\f14d"; 1117 | } 1118 | .fa-compass:before { 1119 | content: "\f14e"; 1120 | } 1121 | .fa-toggle-down:before, 1122 | .fa-caret-square-o-down:before { 1123 | content: "\f150"; 1124 | } 1125 | .fa-toggle-up:before, 1126 | .fa-caret-square-o-up:before { 1127 | content: "\f151"; 1128 | } 1129 | .fa-toggle-right:before, 1130 | .fa-caret-square-o-right:before { 1131 | content: "\f152"; 1132 | } 1133 | .fa-euro:before, 1134 | .fa-eur:before { 1135 | content: "\f153"; 1136 | } 1137 | .fa-gbp:before { 1138 | content: "\f154"; 1139 | } 1140 | .fa-dollar:before, 1141 | .fa-usd:before { 1142 | content: "\f155"; 1143 | } 1144 | .fa-rupee:before, 1145 | .fa-inr:before { 1146 | content: "\f156"; 1147 | } 1148 | .fa-cny:before, 1149 | .fa-rmb:before, 1150 | .fa-yen:before, 1151 | .fa-jpy:before { 1152 | content: "\f157"; 1153 | } 1154 | .fa-ruble:before, 1155 | .fa-rouble:before, 1156 | .fa-rub:before { 1157 | content: "\f158"; 1158 | } 1159 | .fa-won:before, 1160 | .fa-krw:before { 1161 | content: "\f159"; 1162 | } 1163 | .fa-bitcoin:before, 1164 | .fa-btc:before { 1165 | content: "\f15a"; 1166 | } 1167 | .fa-file:before { 1168 | content: "\f15b"; 1169 | } 1170 | .fa-file-text:before { 1171 | content: "\f15c"; 1172 | } 1173 | .fa-sort-alpha-asc:before { 1174 | content: "\f15d"; 1175 | } 1176 | .fa-sort-alpha-desc:before { 1177 | content: "\f15e"; 1178 | } 1179 | .fa-sort-amount-asc:before { 1180 | content: "\f160"; 1181 | } 1182 | .fa-sort-amount-desc:before { 1183 | content: "\f161"; 1184 | } 1185 | .fa-sort-numeric-asc:before { 1186 | content: "\f162"; 1187 | } 1188 | .fa-sort-numeric-desc:before { 1189 | content: "\f163"; 1190 | } 1191 | .fa-thumbs-up:before { 1192 | content: "\f164"; 1193 | } 1194 | .fa-thumbs-down:before { 1195 | content: "\f165"; 1196 | } 1197 | .fa-youtube-square:before { 1198 | content: "\f166"; 1199 | } 1200 | .fa-youtube:before { 1201 | content: "\f167"; 1202 | } 1203 | .fa-xing:before { 1204 | content: "\f168"; 1205 | } 1206 | .fa-xing-square:before { 1207 | content: "\f169"; 1208 | } 1209 | .fa-youtube-play:before { 1210 | content: "\f16a"; 1211 | } 1212 | .fa-dropbox:before { 1213 | content: "\f16b"; 1214 | } 1215 | .fa-stack-overflow:before { 1216 | content: "\f16c"; 1217 | } 1218 | .fa-instagram:before { 1219 | content: "\f16d"; 1220 | } 1221 | .fa-flickr:before { 1222 | content: "\f16e"; 1223 | } 1224 | .fa-adn:before { 1225 | content: "\f170"; 1226 | } 1227 | .fa-bitbucket:before { 1228 | content: "\f171"; 1229 | } 1230 | .fa-bitbucket-square:before { 1231 | content: "\f172"; 1232 | } 1233 | .fa-tumblr:before { 1234 | content: "\f173"; 1235 | } 1236 | .fa-tumblr-square:before { 1237 | content: "\f174"; 1238 | } 1239 | .fa-long-arrow-down:before { 1240 | content: "\f175"; 1241 | } 1242 | .fa-long-arrow-up:before { 1243 | content: "\f176"; 1244 | } 1245 | .fa-long-arrow-left:before { 1246 | content: "\f177"; 1247 | } 1248 | .fa-long-arrow-right:before { 1249 | content: "\f178"; 1250 | } 1251 | .fa-apple:before { 1252 | content: "\f179"; 1253 | } 1254 | .fa-windows:before { 1255 | content: "\f17a"; 1256 | } 1257 | .fa-android:before { 1258 | content: "\f17b"; 1259 | } 1260 | .fa-linux:before { 1261 | content: "\f17c"; 1262 | } 1263 | .fa-dribbble:before { 1264 | content: "\f17d"; 1265 | } 1266 | .fa-skype:before { 1267 | content: "\f17e"; 1268 | } 1269 | .fa-foursquare:before { 1270 | content: "\f180"; 1271 | } 1272 | .fa-trello:before { 1273 | content: "\f181"; 1274 | } 1275 | .fa-female:before { 1276 | content: "\f182"; 1277 | } 1278 | .fa-male:before { 1279 | content: "\f183"; 1280 | } 1281 | .fa-gittip:before, 1282 | .fa-gratipay:before { 1283 | content: "\f184"; 1284 | } 1285 | .fa-sun-o:before { 1286 | content: "\f185"; 1287 | } 1288 | .fa-moon-o:before { 1289 | content: "\f186"; 1290 | } 1291 | .fa-archive:before { 1292 | content: "\f187"; 1293 | } 1294 | .fa-bug:before { 1295 | content: "\f188"; 1296 | } 1297 | .fa-vk:before { 1298 | content: "\f189"; 1299 | } 1300 | .fa-weibo:before { 1301 | content: "\f18a"; 1302 | } 1303 | .fa-renren:before { 1304 | content: "\f18b"; 1305 | } 1306 | .fa-pagelines:before { 1307 | content: "\f18c"; 1308 | } 1309 | .fa-stack-exchange:before { 1310 | content: "\f18d"; 1311 | } 1312 | .fa-arrow-circle-o-right:before { 1313 | content: "\f18e"; 1314 | } 1315 | .fa-arrow-circle-o-left:before { 1316 | content: "\f190"; 1317 | } 1318 | .fa-toggle-left:before, 1319 | .fa-caret-square-o-left:before { 1320 | content: "\f191"; 1321 | } 1322 | .fa-dot-circle-o:before { 1323 | content: "\f192"; 1324 | } 1325 | .fa-wheelchair:before { 1326 | content: "\f193"; 1327 | } 1328 | .fa-vimeo-square:before { 1329 | content: "\f194"; 1330 | } 1331 | .fa-turkish-lira:before, 1332 | .fa-try:before { 1333 | content: "\f195"; 1334 | } 1335 | .fa-plus-square-o:before { 1336 | content: "\f196"; 1337 | } 1338 | .fa-space-shuttle:before { 1339 | content: "\f197"; 1340 | } 1341 | .fa-slack:before { 1342 | content: "\f198"; 1343 | } 1344 | .fa-envelope-square:before { 1345 | content: "\f199"; 1346 | } 1347 | .fa-wordpress:before { 1348 | content: "\f19a"; 1349 | } 1350 | .fa-openid:before { 1351 | content: "\f19b"; 1352 | } 1353 | .fa-institution:before, 1354 | .fa-bank:before, 1355 | .fa-university:before { 1356 | content: "\f19c"; 1357 | } 1358 | .fa-mortar-board:before, 1359 | .fa-graduation-cap:before { 1360 | content: "\f19d"; 1361 | } 1362 | .fa-yahoo:before { 1363 | content: "\f19e"; 1364 | } 1365 | .fa-google:before { 1366 | content: "\f1a0"; 1367 | } 1368 | .fa-reddit:before { 1369 | content: "\f1a1"; 1370 | } 1371 | .fa-reddit-square:before { 1372 | content: "\f1a2"; 1373 | } 1374 | .fa-stumbleupon-circle:before { 1375 | content: "\f1a3"; 1376 | } 1377 | .fa-stumbleupon:before { 1378 | content: "\f1a4"; 1379 | } 1380 | .fa-delicious:before { 1381 | content: "\f1a5"; 1382 | } 1383 | .fa-digg:before { 1384 | content: "\f1a6"; 1385 | } 1386 | .fa-pied-piper-pp:before { 1387 | content: "\f1a7"; 1388 | } 1389 | .fa-pied-piper-alt:before { 1390 | content: "\f1a8"; 1391 | } 1392 | .fa-drupal:before { 1393 | content: "\f1a9"; 1394 | } 1395 | .fa-joomla:before { 1396 | content: "\f1aa"; 1397 | } 1398 | .fa-language:before { 1399 | content: "\f1ab"; 1400 | } 1401 | .fa-fax:before { 1402 | content: "\f1ac"; 1403 | } 1404 | .fa-building:before { 1405 | content: "\f1ad"; 1406 | } 1407 | .fa-child:before { 1408 | content: "\f1ae"; 1409 | } 1410 | .fa-paw:before { 1411 | content: "\f1b0"; 1412 | } 1413 | .fa-spoon:before { 1414 | content: "\f1b1"; 1415 | } 1416 | .fa-cube:before { 1417 | content: "\f1b2"; 1418 | } 1419 | .fa-cubes:before { 1420 | content: "\f1b3"; 1421 | } 1422 | .fa-behance:before { 1423 | content: "\f1b4"; 1424 | } 1425 | .fa-behance-square:before { 1426 | content: "\f1b5"; 1427 | } 1428 | .fa-steam:before { 1429 | content: "\f1b6"; 1430 | } 1431 | .fa-steam-square:before { 1432 | content: "\f1b7"; 1433 | } 1434 | .fa-recycle:before { 1435 | content: "\f1b8"; 1436 | } 1437 | .fa-automobile:before, 1438 | .fa-car:before { 1439 | content: "\f1b9"; 1440 | } 1441 | .fa-cab:before, 1442 | .fa-taxi:before { 1443 | content: "\f1ba"; 1444 | } 1445 | .fa-tree:before { 1446 | content: "\f1bb"; 1447 | } 1448 | .fa-spotify:before { 1449 | content: "\f1bc"; 1450 | } 1451 | .fa-deviantart:before { 1452 | content: "\f1bd"; 1453 | } 1454 | .fa-soundcloud:before { 1455 | content: "\f1be"; 1456 | } 1457 | .fa-database:before { 1458 | content: "\f1c0"; 1459 | } 1460 | .fa-file-pdf-o:before { 1461 | content: "\f1c1"; 1462 | } 1463 | .fa-file-word-o:before { 1464 | content: "\f1c2"; 1465 | } 1466 | .fa-file-excel-o:before { 1467 | content: "\f1c3"; 1468 | } 1469 | .fa-file-powerpoint-o:before { 1470 | content: "\f1c4"; 1471 | } 1472 | .fa-file-photo-o:before, 1473 | .fa-file-picture-o:before, 1474 | .fa-file-image-o:before { 1475 | content: "\f1c5"; 1476 | } 1477 | .fa-file-zip-o:before, 1478 | .fa-file-archive-o:before { 1479 | content: "\f1c6"; 1480 | } 1481 | .fa-file-sound-o:before, 1482 | .fa-file-audio-o:before { 1483 | content: "\f1c7"; 1484 | } 1485 | .fa-file-movie-o:before, 1486 | .fa-file-video-o:before { 1487 | content: "\f1c8"; 1488 | } 1489 | .fa-file-code-o:before { 1490 | content: "\f1c9"; 1491 | } 1492 | .fa-vine:before { 1493 | content: "\f1ca"; 1494 | } 1495 | .fa-codepen:before { 1496 | content: "\f1cb"; 1497 | } 1498 | .fa-jsfiddle:before { 1499 | content: "\f1cc"; 1500 | } 1501 | .fa-life-bouy:before, 1502 | .fa-life-buoy:before, 1503 | .fa-life-saver:before, 1504 | .fa-support:before, 1505 | .fa-life-ring:before { 1506 | content: "\f1cd"; 1507 | } 1508 | .fa-circle-o-notch:before { 1509 | content: "\f1ce"; 1510 | } 1511 | .fa-ra:before, 1512 | .fa-resistance:before, 1513 | .fa-rebel:before { 1514 | content: "\f1d0"; 1515 | } 1516 | .fa-ge:before, 1517 | .fa-empire:before { 1518 | content: "\f1d1"; 1519 | } 1520 | .fa-git-square:before { 1521 | content: "\f1d2"; 1522 | } 1523 | .fa-git:before { 1524 | content: "\f1d3"; 1525 | } 1526 | .fa-y-combinator-square:before, 1527 | .fa-yc-square:before, 1528 | .fa-hacker-news:before { 1529 | content: "\f1d4"; 1530 | } 1531 | .fa-tencent-weibo:before { 1532 | content: "\f1d5"; 1533 | } 1534 | .fa-qq:before { 1535 | content: "\f1d6"; 1536 | } 1537 | .fa-wechat:before, 1538 | .fa-weixin:before { 1539 | content: "\f1d7"; 1540 | } 1541 | .fa-send:before, 1542 | .fa-paper-plane:before { 1543 | content: "\f1d8"; 1544 | } 1545 | .fa-send-o:before, 1546 | .fa-paper-plane-o:before { 1547 | content: "\f1d9"; 1548 | } 1549 | .fa-history:before { 1550 | content: "\f1da"; 1551 | } 1552 | .fa-circle-thin:before { 1553 | content: "\f1db"; 1554 | } 1555 | .fa-header:before { 1556 | content: "\f1dc"; 1557 | } 1558 | .fa-paragraph:before { 1559 | content: "\f1dd"; 1560 | } 1561 | .fa-sliders:before { 1562 | content: "\f1de"; 1563 | } 1564 | .fa-share-alt:before { 1565 | content: "\f1e0"; 1566 | } 1567 | .fa-share-alt-square:before { 1568 | content: "\f1e1"; 1569 | } 1570 | .fa-bomb:before { 1571 | content: "\f1e2"; 1572 | } 1573 | .fa-soccer-ball-o:before, 1574 | .fa-futbol-o:before { 1575 | content: "\f1e3"; 1576 | } 1577 | .fa-tty:before { 1578 | content: "\f1e4"; 1579 | } 1580 | .fa-binoculars:before { 1581 | content: "\f1e5"; 1582 | } 1583 | .fa-plug:before { 1584 | content: "\f1e6"; 1585 | } 1586 | .fa-slideshare:before { 1587 | content: "\f1e7"; 1588 | } 1589 | .fa-twitch:before { 1590 | content: "\f1e8"; 1591 | } 1592 | .fa-yelp:before { 1593 | content: "\f1e9"; 1594 | } 1595 | .fa-newspaper-o:before { 1596 | content: "\f1ea"; 1597 | } 1598 | .fa-wifi:before { 1599 | content: "\f1eb"; 1600 | } 1601 | .fa-calculator:before { 1602 | content: "\f1ec"; 1603 | } 1604 | .fa-paypal:before { 1605 | content: "\f1ed"; 1606 | } 1607 | .fa-google-wallet:before { 1608 | content: "\f1ee"; 1609 | } 1610 | .fa-cc-visa:before { 1611 | content: "\f1f0"; 1612 | } 1613 | .fa-cc-mastercard:before { 1614 | content: "\f1f1"; 1615 | } 1616 | .fa-cc-discover:before { 1617 | content: "\f1f2"; 1618 | } 1619 | .fa-cc-amex:before { 1620 | content: "\f1f3"; 1621 | } 1622 | .fa-cc-paypal:before { 1623 | content: "\f1f4"; 1624 | } 1625 | .fa-cc-stripe:before { 1626 | content: "\f1f5"; 1627 | } 1628 | .fa-bell-slash:before { 1629 | content: "\f1f6"; 1630 | } 1631 | .fa-bell-slash-o:before { 1632 | content: "\f1f7"; 1633 | } 1634 | .fa-trash:before { 1635 | content: "\f1f8"; 1636 | } 1637 | .fa-copyright:before { 1638 | content: "\f1f9"; 1639 | } 1640 | .fa-at:before { 1641 | content: "\f1fa"; 1642 | } 1643 | .fa-eyedropper:before { 1644 | content: "\f1fb"; 1645 | } 1646 | .fa-paint-brush:before { 1647 | content: "\f1fc"; 1648 | } 1649 | .fa-birthday-cake:before { 1650 | content: "\f1fd"; 1651 | } 1652 | .fa-area-chart:before { 1653 | content: "\f1fe"; 1654 | } 1655 | .fa-pie-chart:before { 1656 | content: "\f200"; 1657 | } 1658 | .fa-line-chart:before { 1659 | content: "\f201"; 1660 | } 1661 | .fa-lastfm:before { 1662 | content: "\f202"; 1663 | } 1664 | .fa-lastfm-square:before { 1665 | content: "\f203"; 1666 | } 1667 | .fa-toggle-off:before { 1668 | content: "\f204"; 1669 | } 1670 | .fa-toggle-on:before { 1671 | content: "\f205"; 1672 | } 1673 | .fa-bicycle:before { 1674 | content: "\f206"; 1675 | } 1676 | .fa-bus:before { 1677 | content: "\f207"; 1678 | } 1679 | .fa-ioxhost:before { 1680 | content: "\f208"; 1681 | } 1682 | .fa-angellist:before { 1683 | content: "\f209"; 1684 | } 1685 | .fa-cc:before { 1686 | content: "\f20a"; 1687 | } 1688 | .fa-shekel:before, 1689 | .fa-sheqel:before, 1690 | .fa-ils:before { 1691 | content: "\f20b"; 1692 | } 1693 | .fa-meanpath:before { 1694 | content: "\f20c"; 1695 | } 1696 | .fa-buysellads:before { 1697 | content: "\f20d"; 1698 | } 1699 | .fa-connectdevelop:before { 1700 | content: "\f20e"; 1701 | } 1702 | .fa-dashcube:before { 1703 | content: "\f210"; 1704 | } 1705 | .fa-forumbee:before { 1706 | content: "\f211"; 1707 | } 1708 | .fa-leanpub:before { 1709 | content: "\f212"; 1710 | } 1711 | .fa-sellsy:before { 1712 | content: "\f213"; 1713 | } 1714 | .fa-shirtsinbulk:before { 1715 | content: "\f214"; 1716 | } 1717 | .fa-simplybuilt:before { 1718 | content: "\f215"; 1719 | } 1720 | .fa-skyatlas:before { 1721 | content: "\f216"; 1722 | } 1723 | .fa-cart-plus:before { 1724 | content: "\f217"; 1725 | } 1726 | .fa-cart-arrow-down:before { 1727 | content: "\f218"; 1728 | } 1729 | .fa-diamond:before { 1730 | content: "\f219"; 1731 | } 1732 | .fa-ship:before { 1733 | content: "\f21a"; 1734 | } 1735 | .fa-user-secret:before { 1736 | content: "\f21b"; 1737 | } 1738 | .fa-motorcycle:before { 1739 | content: "\f21c"; 1740 | } 1741 | .fa-street-view:before { 1742 | content: "\f21d"; 1743 | } 1744 | .fa-heartbeat:before { 1745 | content: "\f21e"; 1746 | } 1747 | .fa-venus:before { 1748 | content: "\f221"; 1749 | } 1750 | .fa-mars:before { 1751 | content: "\f222"; 1752 | } 1753 | .fa-mercury:before { 1754 | content: "\f223"; 1755 | } 1756 | .fa-intersex:before, 1757 | .fa-transgender:before { 1758 | content: "\f224"; 1759 | } 1760 | .fa-transgender-alt:before { 1761 | content: "\f225"; 1762 | } 1763 | .fa-venus-double:before { 1764 | content: "\f226"; 1765 | } 1766 | .fa-mars-double:before { 1767 | content: "\f227"; 1768 | } 1769 | .fa-venus-mars:before { 1770 | content: "\f228"; 1771 | } 1772 | .fa-mars-stroke:before { 1773 | content: "\f229"; 1774 | } 1775 | .fa-mars-stroke-v:before { 1776 | content: "\f22a"; 1777 | } 1778 | .fa-mars-stroke-h:before { 1779 | content: "\f22b"; 1780 | } 1781 | .fa-neuter:before { 1782 | content: "\f22c"; 1783 | } 1784 | .fa-genderless:before { 1785 | content: "\f22d"; 1786 | } 1787 | .fa-facebook-official:before { 1788 | content: "\f230"; 1789 | } 1790 | .fa-pinterest-p:before { 1791 | content: "\f231"; 1792 | } 1793 | .fa-whatsapp:before { 1794 | content: "\f232"; 1795 | } 1796 | .fa-server:before { 1797 | content: "\f233"; 1798 | } 1799 | .fa-user-plus:before { 1800 | content: "\f234"; 1801 | } 1802 | .fa-user-times:before { 1803 | content: "\f235"; 1804 | } 1805 | .fa-hotel:before, 1806 | .fa-bed:before { 1807 | content: "\f236"; 1808 | } 1809 | .fa-viacoin:before { 1810 | content: "\f237"; 1811 | } 1812 | .fa-train:before { 1813 | content: "\f238"; 1814 | } 1815 | .fa-subway:before { 1816 | content: "\f239"; 1817 | } 1818 | .fa-medium:before { 1819 | content: "\f23a"; 1820 | } 1821 | .fa-yc:before, 1822 | .fa-y-combinator:before { 1823 | content: "\f23b"; 1824 | } 1825 | .fa-optin-monster:before { 1826 | content: "\f23c"; 1827 | } 1828 | .fa-opencart:before { 1829 | content: "\f23d"; 1830 | } 1831 | .fa-expeditedssl:before { 1832 | content: "\f23e"; 1833 | } 1834 | .fa-battery-4:before, 1835 | .fa-battery:before, 1836 | .fa-battery-full:before { 1837 | content: "\f240"; 1838 | } 1839 | .fa-battery-3:before, 1840 | .fa-battery-three-quarters:before { 1841 | content: "\f241"; 1842 | } 1843 | .fa-battery-2:before, 1844 | .fa-battery-half:before { 1845 | content: "\f242"; 1846 | } 1847 | .fa-battery-1:before, 1848 | .fa-battery-quarter:before { 1849 | content: "\f243"; 1850 | } 1851 | .fa-battery-0:before, 1852 | .fa-battery-empty:before { 1853 | content: "\f244"; 1854 | } 1855 | .fa-mouse-pointer:before { 1856 | content: "\f245"; 1857 | } 1858 | .fa-i-cursor:before { 1859 | content: "\f246"; 1860 | } 1861 | .fa-object-group:before { 1862 | content: "\f247"; 1863 | } 1864 | .fa-object-ungroup:before { 1865 | content: "\f248"; 1866 | } 1867 | .fa-sticky-note:before { 1868 | content: "\f249"; 1869 | } 1870 | .fa-sticky-note-o:before { 1871 | content: "\f24a"; 1872 | } 1873 | .fa-cc-jcb:before { 1874 | content: "\f24b"; 1875 | } 1876 | .fa-cc-diners-club:before { 1877 | content: "\f24c"; 1878 | } 1879 | .fa-clone:before { 1880 | content: "\f24d"; 1881 | } 1882 | .fa-balance-scale:before { 1883 | content: "\f24e"; 1884 | } 1885 | .fa-hourglass-o:before { 1886 | content: "\f250"; 1887 | } 1888 | .fa-hourglass-1:before, 1889 | .fa-hourglass-start:before { 1890 | content: "\f251"; 1891 | } 1892 | .fa-hourglass-2:before, 1893 | .fa-hourglass-half:before { 1894 | content: "\f252"; 1895 | } 1896 | .fa-hourglass-3:before, 1897 | .fa-hourglass-end:before { 1898 | content: "\f253"; 1899 | } 1900 | .fa-hourglass:before { 1901 | content: "\f254"; 1902 | } 1903 | .fa-hand-grab-o:before, 1904 | .fa-hand-rock-o:before { 1905 | content: "\f255"; 1906 | } 1907 | .fa-hand-stop-o:before, 1908 | .fa-hand-paper-o:before { 1909 | content: "\f256"; 1910 | } 1911 | .fa-hand-scissors-o:before { 1912 | content: "\f257"; 1913 | } 1914 | .fa-hand-lizard-o:before { 1915 | content: "\f258"; 1916 | } 1917 | .fa-hand-spock-o:before { 1918 | content: "\f259"; 1919 | } 1920 | .fa-hand-pointer-o:before { 1921 | content: "\f25a"; 1922 | } 1923 | .fa-hand-peace-o:before { 1924 | content: "\f25b"; 1925 | } 1926 | .fa-trademark:before { 1927 | content: "\f25c"; 1928 | } 1929 | .fa-registered:before { 1930 | content: "\f25d"; 1931 | } 1932 | .fa-creative-commons:before { 1933 | content: "\f25e"; 1934 | } 1935 | .fa-gg:before { 1936 | content: "\f260"; 1937 | } 1938 | .fa-gg-circle:before { 1939 | content: "\f261"; 1940 | } 1941 | .fa-tripadvisor:before { 1942 | content: "\f262"; 1943 | } 1944 | .fa-odnoklassniki:before { 1945 | content: "\f263"; 1946 | } 1947 | .fa-odnoklassniki-square:before { 1948 | content: "\f264"; 1949 | } 1950 | .fa-get-pocket:before { 1951 | content: "\f265"; 1952 | } 1953 | .fa-wikipedia-w:before { 1954 | content: "\f266"; 1955 | } 1956 | .fa-safari:before { 1957 | content: "\f267"; 1958 | } 1959 | .fa-chrome:before { 1960 | content: "\f268"; 1961 | } 1962 | .fa-firefox:before { 1963 | content: "\f269"; 1964 | } 1965 | .fa-opera:before { 1966 | content: "\f26a"; 1967 | } 1968 | .fa-internet-explorer:before { 1969 | content: "\f26b"; 1970 | } 1971 | .fa-tv:before, 1972 | .fa-television:before { 1973 | content: "\f26c"; 1974 | } 1975 | .fa-contao:before { 1976 | content: "\f26d"; 1977 | } 1978 | .fa-500px:before { 1979 | content: "\f26e"; 1980 | } 1981 | .fa-amazon:before { 1982 | content: "\f270"; 1983 | } 1984 | .fa-calendar-plus-o:before { 1985 | content: "\f271"; 1986 | } 1987 | .fa-calendar-minus-o:before { 1988 | content: "\f272"; 1989 | } 1990 | .fa-calendar-times-o:before { 1991 | content: "\f273"; 1992 | } 1993 | .fa-calendar-check-o:before { 1994 | content: "\f274"; 1995 | } 1996 | .fa-industry:before { 1997 | content: "\f275"; 1998 | } 1999 | .fa-map-pin:before { 2000 | content: "\f276"; 2001 | } 2002 | .fa-map-signs:before { 2003 | content: "\f277"; 2004 | } 2005 | .fa-map-o:before { 2006 | content: "\f278"; 2007 | } 2008 | .fa-map:before { 2009 | content: "\f279"; 2010 | } 2011 | .fa-commenting:before { 2012 | content: "\f27a"; 2013 | } 2014 | .fa-commenting-o:before { 2015 | content: "\f27b"; 2016 | } 2017 | .fa-houzz:before { 2018 | content: "\f27c"; 2019 | } 2020 | .fa-vimeo:before { 2021 | content: "\f27d"; 2022 | } 2023 | .fa-black-tie:before { 2024 | content: "\f27e"; 2025 | } 2026 | .fa-fonticons:before { 2027 | content: "\f280"; 2028 | } 2029 | .fa-reddit-alien:before { 2030 | content: "\f281"; 2031 | } 2032 | .fa-edge:before { 2033 | content: "\f282"; 2034 | } 2035 | .fa-credit-card-alt:before { 2036 | content: "\f283"; 2037 | } 2038 | .fa-codiepie:before { 2039 | content: "\f284"; 2040 | } 2041 | .fa-modx:before { 2042 | content: "\f285"; 2043 | } 2044 | .fa-fort-awesome:before { 2045 | content: "\f286"; 2046 | } 2047 | .fa-usb:before { 2048 | content: "\f287"; 2049 | } 2050 | .fa-product-hunt:before { 2051 | content: "\f288"; 2052 | } 2053 | .fa-mixcloud:before { 2054 | content: "\f289"; 2055 | } 2056 | .fa-scribd:before { 2057 | content: "\f28a"; 2058 | } 2059 | .fa-pause-circle:before { 2060 | content: "\f28b"; 2061 | } 2062 | .fa-pause-circle-o:before { 2063 | content: "\f28c"; 2064 | } 2065 | .fa-stop-circle:before { 2066 | content: "\f28d"; 2067 | } 2068 | .fa-stop-circle-o:before { 2069 | content: "\f28e"; 2070 | } 2071 | .fa-shopping-bag:before { 2072 | content: "\f290"; 2073 | } 2074 | .fa-shopping-basket:before { 2075 | content: "\f291"; 2076 | } 2077 | .fa-hashtag:before { 2078 | content: "\f292"; 2079 | } 2080 | .fa-bluetooth:before { 2081 | content: "\f293"; 2082 | } 2083 | .fa-bluetooth-b:before { 2084 | content: "\f294"; 2085 | } 2086 | .fa-percent:before { 2087 | content: "\f295"; 2088 | } 2089 | .fa-gitlab:before { 2090 | content: "\f296"; 2091 | } 2092 | .fa-wpbeginner:before { 2093 | content: "\f297"; 2094 | } 2095 | .fa-wpforms:before { 2096 | content: "\f298"; 2097 | } 2098 | .fa-envira:before { 2099 | content: "\f299"; 2100 | } 2101 | .fa-universal-access:before { 2102 | content: "\f29a"; 2103 | } 2104 | .fa-wheelchair-alt:before { 2105 | content: "\f29b"; 2106 | } 2107 | .fa-question-circle-o:before { 2108 | content: "\f29c"; 2109 | } 2110 | .fa-blind:before { 2111 | content: "\f29d"; 2112 | } 2113 | .fa-audio-description:before { 2114 | content: "\f29e"; 2115 | } 2116 | .fa-volume-control-phone:before { 2117 | content: "\f2a0"; 2118 | } 2119 | .fa-braille:before { 2120 | content: "\f2a1"; 2121 | } 2122 | .fa-assistive-listening-systems:before { 2123 | content: "\f2a2"; 2124 | } 2125 | .fa-asl-interpreting:before, 2126 | .fa-american-sign-language-interpreting:before { 2127 | content: "\f2a3"; 2128 | } 2129 | .fa-deafness:before, 2130 | .fa-hard-of-hearing:before, 2131 | .fa-deaf:before { 2132 | content: "\f2a4"; 2133 | } 2134 | .fa-glide:before { 2135 | content: "\f2a5"; 2136 | } 2137 | .fa-glide-g:before { 2138 | content: "\f2a6"; 2139 | } 2140 | .fa-signing:before, 2141 | .fa-sign-language:before { 2142 | content: "\f2a7"; 2143 | } 2144 | .fa-low-vision:before { 2145 | content: "\f2a8"; 2146 | } 2147 | .fa-viadeo:before { 2148 | content: "\f2a9"; 2149 | } 2150 | .fa-viadeo-square:before { 2151 | content: "\f2aa"; 2152 | } 2153 | .fa-snapchat:before { 2154 | content: "\f2ab"; 2155 | } 2156 | .fa-snapchat-ghost:before { 2157 | content: "\f2ac"; 2158 | } 2159 | .fa-snapchat-square:before { 2160 | content: "\f2ad"; 2161 | } 2162 | .fa-pied-piper:before { 2163 | content: "\f2ae"; 2164 | } 2165 | .fa-first-order:before { 2166 | content: "\f2b0"; 2167 | } 2168 | .fa-yoast:before { 2169 | content: "\f2b1"; 2170 | } 2171 | .fa-themeisle:before { 2172 | content: "\f2b2"; 2173 | } 2174 | .fa-google-plus-circle:before, 2175 | .fa-google-plus-official:before { 2176 | content: "\f2b3"; 2177 | } 2178 | .fa-fa:before, 2179 | .fa-font-awesome:before { 2180 | content: "\f2b4"; 2181 | } 2182 | .fa-handshake-o:before { 2183 | content: "\f2b5"; 2184 | } 2185 | .fa-envelope-open:before { 2186 | content: "\f2b6"; 2187 | } 2188 | .fa-envelope-open-o:before { 2189 | content: "\f2b7"; 2190 | } 2191 | .fa-linode:before { 2192 | content: "\f2b8"; 2193 | } 2194 | .fa-address-book:before { 2195 | content: "\f2b9"; 2196 | } 2197 | .fa-address-book-o:before { 2198 | content: "\f2ba"; 2199 | } 2200 | .fa-vcard:before, 2201 | .fa-address-card:before { 2202 | content: "\f2bb"; 2203 | } 2204 | .fa-vcard-o:before, 2205 | .fa-address-card-o:before { 2206 | content: "\f2bc"; 2207 | } 2208 | .fa-user-circle:before { 2209 | content: "\f2bd"; 2210 | } 2211 | .fa-user-circle-o:before { 2212 | content: "\f2be"; 2213 | } 2214 | .fa-user-o:before { 2215 | content: "\f2c0"; 2216 | } 2217 | .fa-id-badge:before { 2218 | content: "\f2c1"; 2219 | } 2220 | .fa-drivers-license:before, 2221 | .fa-id-card:before { 2222 | content: "\f2c2"; 2223 | } 2224 | .fa-drivers-license-o:before, 2225 | .fa-id-card-o:before { 2226 | content: "\f2c3"; 2227 | } 2228 | .fa-quora:before { 2229 | content: "\f2c4"; 2230 | } 2231 | .fa-free-code-camp:before { 2232 | content: "\f2c5"; 2233 | } 2234 | .fa-telegram:before { 2235 | content: "\f2c6"; 2236 | } 2237 | .fa-thermometer-4:before, 2238 | .fa-thermometer:before, 2239 | .fa-thermometer-full:before { 2240 | content: "\f2c7"; 2241 | } 2242 | .fa-thermometer-3:before, 2243 | .fa-thermometer-three-quarters:before { 2244 | content: "\f2c8"; 2245 | } 2246 | .fa-thermometer-2:before, 2247 | .fa-thermometer-half:before { 2248 | content: "\f2c9"; 2249 | } 2250 | .fa-thermometer-1:before, 2251 | .fa-thermometer-quarter:before { 2252 | content: "\f2ca"; 2253 | } 2254 | .fa-thermometer-0:before, 2255 | .fa-thermometer-empty:before { 2256 | content: "\f2cb"; 2257 | } 2258 | .fa-shower:before { 2259 | content: "\f2cc"; 2260 | } 2261 | .fa-bathtub:before, 2262 | .fa-s15:before, 2263 | .fa-bath:before { 2264 | content: "\f2cd"; 2265 | } 2266 | .fa-podcast:before { 2267 | content: "\f2ce"; 2268 | } 2269 | .fa-window-maximize:before { 2270 | content: "\f2d0"; 2271 | } 2272 | .fa-window-minimize:before { 2273 | content: "\f2d1"; 2274 | } 2275 | .fa-window-restore:before { 2276 | content: "\f2d2"; 2277 | } 2278 | .fa-times-rectangle:before, 2279 | .fa-window-close:before { 2280 | content: "\f2d3"; 2281 | } 2282 | .fa-times-rectangle-o:before, 2283 | .fa-window-close-o:before { 2284 | content: "\f2d4"; 2285 | } 2286 | .fa-bandcamp:before { 2287 | content: "\f2d5"; 2288 | } 2289 | .fa-grav:before { 2290 | content: "\f2d6"; 2291 | } 2292 | .fa-etsy:before { 2293 | content: "\f2d7"; 2294 | } 2295 | .fa-imdb:before { 2296 | content: "\f2d8"; 2297 | } 2298 | .fa-ravelry:before { 2299 | content: "\f2d9"; 2300 | } 2301 | .fa-eercast:before { 2302 | content: "\f2da"; 2303 | } 2304 | .fa-microchip:before { 2305 | content: "\f2db"; 2306 | } 2307 | .fa-snowflake-o:before { 2308 | content: "\f2dc"; 2309 | } 2310 | .fa-superpowers:before { 2311 | content: "\f2dd"; 2312 | } 2313 | .fa-wpexplorer:before { 2314 | content: "\f2de"; 2315 | } 2316 | .fa-meetup:before { 2317 | content: "\f2e0"; 2318 | } 2319 | .sr-only { 2320 | position: absolute; 2321 | width: 1px; 2322 | height: 1px; 2323 | padding: 0; 2324 | margin: -1px; 2325 | overflow: hidden; 2326 | clip: rect(0, 0, 0, 0); 2327 | border: 0; 2328 | } 2329 | .sr-only-focusable:active, 2330 | .sr-only-focusable:focus { 2331 | position: static; 2332 | width: auto; 2333 | height: auto; 2334 | margin: 0; 2335 | overflow: visible; 2336 | clip: auto; 2337 | } 2338 | -------------------------------------------------------------------------------- /QtFontAwesome/Font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtFontAwesome/Font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /QtFontAwesome/QtFontAwesome.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtFontAwesome.cpp 3 | *@brief Qt使用FontAwesome图标字体库 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtFontAwesome.h" 9 | #include "ui_QtFontAwesome.h" 10 | #include 11 | #include 12 | 13 | QtFontAwesome::QtFontAwesome(QWidget *parent) : 14 | QDialog(parent), 15 | ui(new Ui::QtFontAwesome) 16 | { 17 | ui->setupUi(this); 18 | 19 | // 添加字体文件 20 | int fontId = QFontDatabase::addApplicationFont(":/Font/fontawesome-webfont.ttf"); 21 | QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId); 22 | qDebug() << "fontFamilies.size() " << fontFamilies.size(); 23 | 24 | // 创建字体 25 | QFont font; 26 | font.setFamily(fontFamilies.at(0)); 27 | font.setPointSize(20); 28 | 29 | // 设置字体及样式、大小 30 | ui->ZoomInLabel->setFont(font); 31 | ui->ZoomInLabel->setText(QChar(0xf00e)); 32 | ui->ZoomInLabel->setStyleSheet("color: rgb(0, 160, 230);"); 33 | 34 | font.setPointSize(30); 35 | ui->ZoomOutLabel->setFont(font); 36 | ui->ZoomOutLabel->setText(QChar(0xf004)); 37 | ui->ZoomOutLabel->setStyleSheet("color: green;"); 38 | } 39 | 40 | QtFontAwesome::~QtFontAwesome() 41 | { 42 | delete ui; 43 | } 44 | -------------------------------------------------------------------------------- /QtFontAwesome/QtFontAwesome.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtFontAwesome.cpp 3 | *@brief Qt使用FontAwesome图标字体库 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | 11 | namespace Ui { 12 | class QtFontAwesome; 13 | } 14 | 15 | class QtFontAwesome : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit QtFontAwesome(QWidget *parent = 0); 21 | ~QtFontAwesome(); 22 | 23 | private: 24 | Ui::QtFontAwesome *ui; 25 | }; 26 | -------------------------------------------------------------------------------- /QtFontAwesome/QtFontAwesome.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | TARGET = QtFontAwesome 10 | TEMPLATE = app 11 | 12 | SOURCES += main.cpp\ 13 | QtFontAwesome.cpp 14 | 15 | HEADERS += QtFontAwesome.h 16 | 17 | FORMS += QtFontAwesome.ui 18 | 19 | RESOURCES += \ 20 | QtFontAwesome.qrc 21 | -------------------------------------------------------------------------------- /QtFontAwesome/QtFontAwesome.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | Font/fontawesome-webfont.ttf 4 | 5 | 6 | -------------------------------------------------------------------------------- /QtFontAwesome/QtFontAwesome.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | QtFontAwesome 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Qt使用FontAwesome 15 | 16 | 17 | 18 | 19 | 50 20 | 110 21 | 121 22 | 81 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 200 33 | 110 34 | 151 35 | 91 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /QtFontAwesome/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtFontAwesome.h" 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | QtFontAwesome w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /QtFontAwesome/show.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtFontAwesome/show.jpg -------------------------------------------------------------------------------- /QtGrayImage/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtGrayImage/1.png -------------------------------------------------------------------------------- /QtGrayImage/QtGrayImage.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtGrayImage.cpp 3 | *@brief 图片转灰度 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtGrayImage.h" 9 | #include "ui_QtGrayImage.h" 10 | 11 | QtGrayImage::QtGrayImage(QWidget *parent) : 12 | QDialog(parent), 13 | ui(new Ui::QtGrayImage) 14 | { 15 | ui->setupUi(this); 16 | 17 | connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(slotGrayImage())); 18 | } 19 | 20 | QtGrayImage::~QtGrayImage() 21 | { 22 | delete ui; 23 | } 24 | 25 | void QtGrayImage::slotGrayImage() 26 | { 27 | QImage srcImage(":/1.png"); 28 | grayImage(srcImage); 29 | ui->label2->setPixmap(QPixmap::fromImage(srcImage)); 30 | } 31 | 32 | void QtGrayImage::grayImage(QImage& srcImage) 33 | { 34 | for (int i = 0; i < srcImage.width(); i++) 35 | { 36 | for (int j= 0; j < srcImage.height(); j++) 37 | { 38 | QRgb color = srcImage.pixel(i, j); 39 | int gray = qGray(color); 40 | srcImage.setPixel(i, j, qRgba(gray, gray, gray, qAlpha(color))); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /QtGrayImage/QtGrayImage.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtGrayImage.h 3 | *@brief 图片转灰度 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | 11 | namespace Ui { 12 | class QtGrayImage; 13 | } 14 | 15 | class QtGrayImage : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit QtGrayImage(QWidget *parent = 0); 21 | ~QtGrayImage(); 22 | 23 | private slots: 24 | void slotGrayImage(); 25 | 26 | private: 27 | void grayImage(QImage& srcImage); 28 | 29 | Ui::QtGrayImage *ui; 30 | }; 31 | -------------------------------------------------------------------------------- /QtGrayImage/QtGrayImage.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | SOURCES += \ 10 | main.cpp \ 11 | QtGrayImage.cpp 12 | 13 | HEADERS += \ 14 | QtGrayImage.h 15 | 16 | FORMS += \ 17 | QtGrayImage.ui 18 | 19 | RESOURCES += \ 20 | QtGrayImage.qrc 21 | -------------------------------------------------------------------------------- /QtGrayImage/QtGrayImage.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1.png 4 | 5 | 6 | -------------------------------------------------------------------------------- /QtGrayImage/QtGrayImage.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | QtGrayImage 4 | 5 | 6 | 7 | 0 8 | 0 9 | 327 10 | 242 11 | 12 | 13 | 14 | Qt图片转灰度 15 | 16 | 17 | 18 | 19 | 90 20 | 180 21 | 131 22 | 30 23 | 24 | 25 | 26 | 27 | 0 28 | 30 29 | 30 | 31 | 32 | 33 | 16777215 34 | 30 35 | 36 | 37 | 38 | 转灰度 39 | 40 | 41 | 42 | 43 | 44 | 30 45 | 30 46 | 128 47 | 128 48 | 49 | 50 | 51 | 52 | 128 53 | 128 54 | 55 | 56 | 57 | 58 | 128 59 | 128 60 | 61 | 62 | 63 | image: url(:/1.png); 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 170 73 | 30 74 | 128 75 | 128 76 | 77 | 78 | 79 | 80 | 128 81 | 128 82 | 83 | 84 | 85 | 86 | 128 87 | 128 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /QtGrayImage/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtGrayImage.h" 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | QtGrayImage w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /QtGrayImage/show.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtGrayImage/show.png -------------------------------------------------------------------------------- /QtLanguage/QtLanguage.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtLanguage.cpp 3 | *@brief 语言切换 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtLanguage.h" 9 | #include "ui_QtLanguage.h" 10 | #include 11 | #include 12 | 13 | Dialog::Dialog(QWidget *parent) : 14 | QDialog(parent), 15 | ui(new Ui::Dialog) 16 | { 17 | ui->setupUi(this); 18 | ui->radioButton->setChecked(true); 19 | connect(ui->radioButton,SIGNAL(toggled(bool)),this,SLOT(changeLanguage())); 20 | connect(ui->radioButton_2,SIGNAL(toggled(bool)),this,SLOT(changeLanguage())); 21 | } 22 | 23 | Dialog::~Dialog() 24 | { 25 | delete ui; 26 | } 27 | 28 | void Dialog::changeLanguage() 29 | { 30 | QTranslator translator; 31 | QRadioButton* radio = qobject_cast(sender()); 32 | if(radio == ui->radioButton) 33 | { 34 | translator.load(":/en_US.qm"); 35 | qApp->installTranslator(&translator); 36 | ui->retranslateUi(this); 37 | } 38 | else if(radio == ui->radioButton_2) 39 | { 40 | translator.load(":/zh_CN.qm"); 41 | qApp->installTranslator(&translator); 42 | ui->retranslateUi(this); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /QtLanguage/QtLanguage.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtLanguage.h 3 | *@brief 语言切换 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | 11 | namespace Ui { 12 | class Dialog; 13 | } 14 | 15 | class Dialog : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit Dialog(QWidget *parent = 0); 21 | ~Dialog(); 22 | 23 | private: 24 | Ui::Dialog *ui; 25 | 26 | private slots: 27 | void changeLanguage(); 28 | }; 29 | -------------------------------------------------------------------------------- /QtLanguage/QtLanguage.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | SOURCES += main.cpp \ 10 | QtLanguage.cpp 11 | 12 | HEADERS += QtLanguage.h 13 | 14 | FORMS += QtLanguage.ui 15 | 16 | TRANSLATIONS = zh_CN.ts en_US.ts 17 | 18 | RESOURCES += \ 19 | QtLanguage.qrc 20 | -------------------------------------------------------------------------------- /QtLanguage/QtLanguage.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | zh_CN.qm 4 | en_US.qm 5 | 6 | 7 | -------------------------------------------------------------------------------- /QtLanguage/QtLanguage.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Dialog 15 | 16 | 17 | 18 | 19 | 110 20 | 100 21 | 171 22 | 21 23 | 24 | 25 | 26 | TextLabel 27 | 28 | 29 | Qt::AlignCenter 30 | 31 | 32 | 33 | 34 | 35 | 130 36 | 150 37 | 131 38 | 41 39 | 40 | 41 | 42 | PushButton 43 | 44 | 45 | 46 | 47 | 48 | 290 49 | 220 50 | 89 51 | 16 52 | 53 | 54 | 55 | English 56 | 57 | 58 | 59 | 60 | 61 | 290 62 | 250 63 | 89 64 | 16 65 | 66 | 67 | 68 | 简体中文 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /QtLanguage/en_US.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLanguage/en_US.qm -------------------------------------------------------------------------------- /QtLanguage/en_US.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Dialog 6 | 7 | 8 | Dialog 9 | Dialog 10 | 11 | 12 | 13 | TextLabel 14 | TextLabel 15 | 16 | 17 | 18 | PushButton 19 | PushButton 20 | 21 | 22 | 23 | English 24 | 25 | 26 | 27 | 28 | 简体中文 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /QtLanguage/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLanguage/image1.png -------------------------------------------------------------------------------- /QtLanguage/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLanguage/image2.png -------------------------------------------------------------------------------- /QtLanguage/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtLanguage.h" 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | Dialog w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /QtLanguage/show1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLanguage/show1.png -------------------------------------------------------------------------------- /QtLanguage/show2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLanguage/show2.png -------------------------------------------------------------------------------- /QtLanguage/zh_CN.qm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLanguage/zh_CN.qm -------------------------------------------------------------------------------- /QtLanguage/zh_CN.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Dialog 6 | 7 | 8 | Dialog 9 | 对话框 10 | 11 | 12 | 13 | TextLabel 14 | 文本 15 | 16 | 17 | 18 | PushButton 19 | 按钮 20 | 21 | 22 | 23 | English 24 | 25 | 26 | 27 | 28 | 简体中文 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /QtLoadRcc/Face.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLoadRcc/Face.png -------------------------------------------------------------------------------- /QtLoadRcc/QtLoadRcc.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtLoadRcc.cpp 3 | *@brief 动态加载RCC资源 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtLoadRcc.h" 9 | #include "ui_QtLoadRcc.h" 10 | #include 11 | #include 12 | 13 | QtLoadRcc::QtLoadRcc(QWidget *parent) : 14 | QDialog(parent), 15 | ui(new Ui::QtLoadRcc), 16 | m_rccIsLoad(false) 17 | { 18 | ui->setupUi(this); 19 | connect(ui->pushButtonLoad, SIGNAL(clicked()), this, SLOT(loadRcc())); 20 | connect(ui->pushButtonShow, SIGNAL(clicked()), this, SLOT(showPic())); 21 | connect(ui->pushButtonFree, SIGNAL(clicked()), this, SLOT(freeRcc())); 22 | setButtonEnabled(); 23 | } 24 | 25 | QtLoadRcc::~QtLoadRcc() 26 | { 27 | delete ui; 28 | } 29 | 30 | void QtLoadRcc::loadRcc() 31 | { 32 | QResource::registerResource("QtLoadRcc.rcc"); 33 | m_rccIsLoad = true; 34 | setButtonEnabled(); 35 | } 36 | 37 | void QtLoadRcc::showPic() 38 | { 39 | QPixmap image(":/Face.png"); 40 | ui->label->setPixmap(image); 41 | } 42 | 43 | void QtLoadRcc::freeRcc() 44 | { 45 | ui->label->setPixmap(QPixmap()); 46 | QResource::unregisterResource("QtLoadRcc.rcc"); 47 | m_rccIsLoad = false; 48 | setButtonEnabled(); 49 | } 50 | 51 | void QtLoadRcc::setButtonEnabled() 52 | { 53 | ui->pushButtonLoad->setEnabled(!m_rccIsLoad); 54 | ui->pushButtonShow->setEnabled(m_rccIsLoad); 55 | ui->pushButtonFree->setEnabled(m_rccIsLoad); 56 | } 57 | -------------------------------------------------------------------------------- /QtLoadRcc/QtLoadRcc.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtLoadRcc.h 3 | *@brief 动态加载RCC资源 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | 11 | namespace Ui { 12 | class QtLoadRcc; 13 | } 14 | 15 | class QtLoadRcc : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit QtLoadRcc(QWidget *parent = 0); 21 | ~QtLoadRcc(); 22 | 23 | private slots: 24 | void loadRcc(); 25 | void showPic(); 26 | void freeRcc(); 27 | 28 | private: 29 | Ui::QtLoadRcc *ui; 30 | bool m_rccIsLoad; 31 | 32 | void setButtonEnabled(); 33 | }; 34 | -------------------------------------------------------------------------------- /QtLoadRcc/QtLoadRcc.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | SOURCES += main.cpp\ 10 | QtLoadRcc.cpp 11 | 12 | HEADERS += QtLoadRcc.h 13 | 14 | FORMS += QtLoadRcc.ui 15 | -------------------------------------------------------------------------------- /QtLoadRcc/QtLoadRcc.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | Face.png 4 | 5 | 6 | -------------------------------------------------------------------------------- /QtLoadRcc/QtLoadRcc.rcc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLoadRcc/QtLoadRcc.rcc -------------------------------------------------------------------------------- /QtLoadRcc/QtLoadRcc.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | QtLoadRcc 4 | 5 | 6 | 7 | 0 8 | 0 9 | 300 10 | 300 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | 21 | 300 22 | 300 23 | 24 | 25 | 26 | 27 | 300 28 | 300 29 | 30 | 31 | 32 | Qt动态加载RCC资源 33 | 34 | 35 | 36 | 6 37 | 38 | 39 | 6 40 | 41 | 42 | 6 43 | 44 | 45 | 6 46 | 47 | 48 | 6 49 | 50 | 51 | 52 | 53 | 显示图片 54 | 55 | 56 | 57 | 58 | 59 | 60 | 卸载资源 61 | 62 | 63 | 64 | 65 | 66 | 67 | 加载资源 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | Qt::AlignCenter 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /QtLoadRcc/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtLoadRcc.h" 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | QtLoadRcc w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /QtLoadRcc/makeRcc.bat: -------------------------------------------------------------------------------- 1 | rcc.exe -binary QtLoadRcc.qrc -o QtLoadRcc.rcc -------------------------------------------------------------------------------- /QtLoadRcc/show.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtLoadRcc/show.gif -------------------------------------------------------------------------------- /QtQssButton/ButtonHover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtQssButton/ButtonHover.png -------------------------------------------------------------------------------- /QtQssButton/ButtonNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtQssButton/ButtonNormal.png -------------------------------------------------------------------------------- /QtQssButton/ButtonPressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtQssButton/ButtonPressed.png -------------------------------------------------------------------------------- /QtQssButton/QtQssButton.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtQssButton.cpp 3 | *@brief Qt Qss按钮 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtQssButton.h" 9 | #include "ui_QtQssButton.h" 10 | 11 | Dialog::Dialog(QWidget *parent) : 12 | QDialog(parent), 13 | ui(new Ui::Dialog) 14 | { 15 | ui->setupUi(this); 16 | } 17 | 18 | Dialog::~Dialog() 19 | { 20 | delete ui; 21 | } 22 | -------------------------------------------------------------------------------- /QtQssButton/QtQssButton.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtQssButton.h 3 | *@brief Qt Qss按钮 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | 11 | namespace Ui { 12 | class Dialog; 13 | } 14 | 15 | class Dialog : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit Dialog(QWidget *parent = 0); 21 | ~Dialog(); 22 | 23 | private: 24 | Ui::Dialog *ui; 25 | }; 26 | -------------------------------------------------------------------------------- /QtQssButton/QtQssButton.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | TEMPLATE = app 10 | 11 | SOURCES += main.cpp\ 12 | QtQssButton.cpp 13 | 14 | HEADERS += QtQssButton.h 15 | 16 | FORMS += QtQssButton.ui 17 | 18 | RESOURCES += \ 19 | QtQssButton.qrc 20 | -------------------------------------------------------------------------------- /QtQssButton/QtQssButton.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | ButtonHover.png 4 | ButtonNormal.png 5 | ButtonPressed.png 6 | QtQssButton.qss 7 | 8 | 9 | -------------------------------------------------------------------------------- /QtQssButton/QtQssButton.qss: -------------------------------------------------------------------------------- 1 | QPushButton 2 | { 3 | border-image: url(:/ButtonNormal.png); 4 | } 5 | QPushButton:hover 6 | { 7 | border-image: url(:/ButtonHover.png); 8 | } 9 | QPushButton:pressed 10 | { 11 | border-image: url(:/ButtonPressed.png); 12 | } 13 | -------------------------------------------------------------------------------- /QtQssButton/QtQssButton.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 300 10 | 300 11 | 12 | 13 | 14 | 15 | 300 16 | 300 17 | 18 | 19 | 20 | 21 | 300 22 | 300 23 | 24 | 25 | 26 | Qt Qss按钮 27 | 28 | 29 | 30 | 31 | 50 32 | 170 33 | 200 34 | 40 35 | 36 | 37 | 38 | 39 | 200 40 | 40 41 | 42 | 43 | 44 | 45 | 80 46 | 80 47 | 48 | 49 | 50 | 按钮 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /QtQssButton/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtQssButton.h" 9 | #include 10 | #include 11 | 12 | int main(int argc, char *argv[]) 13 | { 14 | QApplication a(argc, argv); 15 | 16 | QFile styleFile(":/QtQssButton.qss"); 17 | if (!styleFile.open(QIODevice::ReadOnly)) 18 | { 19 | return(-1); 20 | } 21 | a.setStyleSheet(styleFile.readAll()); 22 | 23 | Dialog w; 24 | w.show(); 25 | 26 | return a.exec(); 27 | } 28 | -------------------------------------------------------------------------------- /QtQssButton/show.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtQssButton/show.gif -------------------------------------------------------------------------------- /QtStackedWidget/QtStackedWidget.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtStackedWidget.cpp 3 | *@brief Qt堆栈窗体 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtStackedWidget.h" 9 | #include "ui_QtStackedWidget.h" 10 | 11 | QtStackedWidget::QtStackedWidget(QWidget *parent) : 12 | QDialog(parent), 13 | ui(new Ui::QtStackedWidget) 14 | { 15 | ui->setupUi(this); 16 | connect(ui->pushButtonPage1, &QPushButton::clicked, this, &QtStackedWidget::setCurrentIndex); 17 | connect(ui->pushButtonPage2, &QPushButton::clicked, this, &QtStackedWidget::setCurrentIndex); 18 | ui->stackedWidget->setCurrentIndex(0); 19 | m_lpPropertyAni = new Cls_PropertyAni(this); 20 | } 21 | 22 | QtStackedWidget::~QtStackedWidget() 23 | { 24 | delete m_lpPropertyAni; 25 | m_lpPropertyAni = nullptr; 26 | delete ui; 27 | } 28 | 29 | void QtStackedWidget::setCurrentIndex() 30 | { 31 | QPushButton *btn = reinterpret_cast(sender()); 32 | if (btn == ui->pushButtonPage1 && ui->stackedWidget->currentIndex() != 0) 33 | { 34 | m_lpPropertyAni->Init(ui->stackedWidget, true); 35 | ui->stackedWidget->setCurrentIndex(0); 36 | } 37 | else if (btn == ui->pushButtonPage2 && ui->stackedWidget->currentIndex() != 1) 38 | { 39 | m_lpPropertyAni->Init(ui->stackedWidget, false); 40 | ui->stackedWidget->setCurrentIndex(1); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /QtStackedWidget/QtStackedWidget.h: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file QtStackedWidget.h 3 | *@brief Qt堆栈窗体 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #pragma once 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | typedef struct PropertyAni_Stu 16 | { 17 | QLabel *lblGrab; 18 | QPropertyAnimation *pAniGrab; 19 | QPropertyAnimation *pAniCome; 20 | QParallelAnimationGroup *pGroup; 21 | 22 | PropertyAni_Stu(QWidget *pThis) 23 | { 24 | lblGrab = new QLabel(pThis); 25 | pAniGrab = new QPropertyAnimation(); 26 | pAniCome = new QPropertyAnimation(); 27 | pGroup = new QParallelAnimationGroup(); 28 | } 29 | ~PropertyAni_Stu() 30 | { 31 | delete lblGrab;lblGrab = nullptr; 32 | delete pAniGrab;pAniGrab = nullptr; 33 | delete pAniCome;pAniCome = nullptr; 34 | delete pGroup;pGroup = nullptr; 35 | } 36 | void Init(QStackedWidget *pSW, bool bolLeft) 37 | { 38 | lblGrab->resize(pSW->size()); 39 | lblGrab->setPixmap(pSW->grab()); 40 | lblGrab->show(); 41 | 42 | pAniGrab->setTargetObject(lblGrab); 43 | pAniGrab->setPropertyName("geometry"); 44 | pAniGrab->setDuration(100); 45 | pAniGrab->setStartValue(pSW->geometry()); 46 | pAniGrab->setEndValue(QRect(-pSW->width(), pSW->y(), pSW->width(), pSW->height())); 47 | 48 | pAniCome->setTargetObject(pSW); 49 | pAniCome->setPropertyName("geometry"); 50 | pAniCome->setDuration(100); 51 | pAniCome->setStartValue(QRect(pSW->width(), pSW->y(), pSW->width(), pSW->height())); 52 | pAniCome->setEndValue(pSW->geometry()); 53 | 54 | pGroup->addAnimation(pAniGrab); 55 | pGroup->addAnimation(pAniCome); 56 | pGroup->start(); 57 | } 58 | }Cls_PropertyAni,*Cls_lpPropertyAni; 59 | 60 | namespace Ui { 61 | class QtStackedWidget; 62 | } 63 | 64 | class QtStackedWidget : public QDialog 65 | { 66 | Q_OBJECT 67 | 68 | public: 69 | explicit QtStackedWidget(QWidget *parent = 0); 70 | ~QtStackedWidget(); 71 | 72 | private: 73 | Ui::QtStackedWidget *ui; 74 | Cls_PropertyAni *m_lpPropertyAni; 75 | 76 | private slots: 77 | void setCurrentIndex(); 78 | }; 79 | -------------------------------------------------------------------------------- /QtStackedWidget/QtStackedWidget.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui widgets 8 | 9 | TEMPLATE = app 10 | CONFIG += c++11 11 | 12 | SOURCES += main.cpp\ 13 | QtStackedWidget.cpp 14 | 15 | HEADERS += QtStackedWidget.h 16 | 17 | FORMS += QtStackedWidget.ui 18 | -------------------------------------------------------------------------------- /QtStackedWidget/QtStackedWidget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | QtStackedWidget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 600 10 | 400 11 | 12 | 13 | 14 | 15 | 600 16 | 400 17 | 18 | 19 | 20 | 21 | 600 22 | 400 23 | 24 | 25 | 26 | Qt堆栈窗体 27 | 28 | 29 | 30 | 0 31 | 32 | 33 | 0 34 | 35 | 36 | 0 37 | 38 | 39 | 0 40 | 41 | 42 | 0 43 | 44 | 45 | 46 | 47 | 1 48 | 49 | 50 | 51 | 52 | 0 53 | 54 | 55 | 0 56 | 57 | 58 | 0 59 | 60 | 61 | 0 62 | 63 | 64 | 0 65 | 66 | 67 | 68 | 69 | 页面1 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 0 79 | 80 | 81 | 0 82 | 83 | 84 | 0 85 | 86 | 87 | 0 88 | 89 | 90 | 0 91 | 92 | 93 | 94 | 95 | 页面2 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 0 107 | 108 | 109 | 110 | 111 | 切换到页面1 112 | 113 | 114 | 115 | 116 | 117 | 118 | 切换到页面2 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /QtStackedWidget/main.cpp: -------------------------------------------------------------------------------- 1 | /*! 2 | *@file main.cpp 3 | *@brief 程序主文件 4 | *@version 1.0 5 | *@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation 6 | *@author zhengtianzuo 7 | */ 8 | #include "QtStackedWidget.h" 9 | #include 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | QApplication a(argc, argv); 14 | QtStackedWidget w; 15 | w.show(); 16 | 17 | return a.exec(); 18 | } 19 | -------------------------------------------------------------------------------- /QtStackedWidget/show.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtStackedWidget/show.gif -------------------------------------------------------------------------------- /QtWidgetsExamples.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhengtianzuo/QtWidgetsExamples/2b50c2dd29b4073f636cb84295f46917bea24dc2/QtWidgetsExamples.jpg -------------------------------------------------------------------------------- /QtWidgetsExamples.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Copyright (C) 2003-2103 CamelSoft Corporation 4 | # 5 | #------------------------------------------------- 6 | 7 | TEMPLATE = subdirs 8 | SUBDIRS += QtAnimatedTextEdit 9 | SUBDIRS += QtAnimation 10 | SUBDIRS += QtDialog 11 | SUBDIRS += QtGrayImage 12 | SUBDIRS += QtLanguage 13 | SUBDIRS += QtLoadRcc 14 | SUBDIRS += QtQssButton 15 | SUBDIRS += QtStackedWidget 16 | SUBDIRS += QtFontAwesome 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |  2 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtWidgetsExamples.jpg?raw=true) 3 | 4 | # QtWidgetsExamples 5 | QtWidgets相关的技术分享 6 | 7 | ![](https://img.shields.io/badge/%E7%89%88%E6%9D%83%E8%AE%B8%E5%8F%AF-MIT-orange.svg) 8 | ![](https://img.shields.io/badge/Qt-5.10-blue.svg) 9 | ![](https://img.shields.io/badge/VS-2017-blue.svg) 10 | ![](https://img.shields.io/badge/%E7%89%88%E6%9C%AC-1.0.0.0-blue.svg) 11 | ![](https://img.shields.io/badge/%E7%BC%96%E8%AF%91-%E6%88%90%E5%8A%9F-brightgreen.svg) 12 | 13 | QtAnimatedTextEdit: QTextEdit中插入Gif动画并显示 14 | 15 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtAnimatedTextEdit/show.gif?raw=true) 16 | 17 | 18 | QtAnimation: Qt动画控制效果 19 | 20 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtAnimation/show.gif?raw=true) 21 | 22 | 23 | QtDialog: Qt自定义窗体系统按钮 24 | 25 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtDialog/show.png?raw=true) 26 | 27 | 28 | QtGrayImage: Qt图片转灰度 29 | 30 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtGrayImage/show.png?raw=true) 31 | 32 | 33 | QtLanguage: Qt语言切换 34 | 35 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtLanguage/show1.png?raw=true) 36 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtLanguage/show2.png?raw=true) 37 | 38 | 39 | QtLoadRcc: Qt动态加载RCC资源 40 | 41 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtLoadRcc/show.gif?raw=true) 42 | 43 | 44 | QtQssButton: Qt Qss按钮 45 | 46 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtQssButton/show.gif?raw=true) 47 | 48 | 49 | QtStackedWidget: Qt堆栈窗体 50 | 51 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtStackedWidget/show.gif?raw=true) 52 | 53 | 54 | QtFontAwesome: Qt使用FontAwesome图标字体库 55 | 56 | ![](https://github.com/zhengtianzuo/QtWidgetsExamples/blob/master/QtFontAwesome/show.jpg?raw=true) 57 | 58 | 59 | 60 | #### 联系方式: 61 | *** 62 | |作者|郑天佐| 63 | |---|--- 64 | |QQ|278969898 65 | |主页|http://www.camelstudio.cn/ 66 | |邮箱|camelsoft@163.com 67 | |博客|http://blog.csdn.net/zhengtianzuo06/ 68 | |github|https://github.com/zhengtianzuo 69 | |QQ群|199672080 ![](https://github.com/zhengtianzuo/zhengtianzuo.github.io/blob/master/qqgroup.jpg?raw=true) 70 | 71 | 72 | 73 | ###### 觉得分享的内容还不错, 就请作者喝杯咖啡吧~~ 74 | *** --------------------------------------------------------------------------------