更新代码

master
feiyangqingyun 2021-11-25 09:50:47 +08:00
parent 714282238a
commit 8ef09c237a
51 changed files with 78 additions and 54 deletions

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmBattery w; frmBattery w;
w.setWindowTitle("电池电量控件"); w.setWindowTitle("电池电量控件 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmDeviceButton w; frmDeviceButton w;
w.setWindowTitle("设备按钮控件"); w.setWindowTitle("设备按钮控件 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmDeviceSizeTable w; frmDeviceSizeTable w;
w.setWindowTitle("磁盘容量"); w.setWindowTitle("磁盘容量 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmImageSwitch w; frmImageSwitch w;
w.setWindowTitle("图片背景开关"); w.setWindowTitle("图片背景开关 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -22,6 +22,7 @@ int main(int argc, char *argv[])
#endif #endif
frmIPAddress w; frmIPAddress w;
w.setWindowTitle("IP地址控件 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmLightButton w; frmLightButton w;
w.setWindowTitle("高亮发光按钮"); w.setWindowTitle("高亮发光按钮 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmNavButton w; frmNavButton w;
w.setWindowTitle("导航按钮控件"); w.setWindowTitle("导航按钮控件 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmSmoothCurve w; frmSmoothCurve w;
w.setWindowTitle("平滑曲线"); w.setWindowTitle("平滑曲线 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmZhToPY w; frmZhToPY w;
w.setWindowTitle("汉字转拼音"); w.setWindowTitle("汉字转拼音 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -1,10 +1,14 @@
#pragma execution_character_set("utf-8")
#include "widget.h" #include "widget.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
Widget w; Widget w;
w.setWindowTitle("异形窗体 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -10,9 +10,6 @@
<height>353</height> <height>353</height>
</rect> </rect>
</property> </property>
<property name="windowTitle">
<string>Widget</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>

View File

@ -36,7 +36,7 @@ int main(int argc, char *argv[])
} }
frmDbPage w; frmDbPage w;
w.setWindowTitle("数据库分页示例(作者:517216493)"); w.setWindowTitle("数据库分页示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -1,10 +1,14 @@
#pragma execution_character_set("utf-8")
#include "widget.h" #include "widget.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
Widget w; Widget w;
w.setWindowTitle("Echart图表JS交互示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -10,9 +10,6 @@
<height>600</height> <height>600</height>
</rect> </rect>
</property> </property>
<property name="windowTitle">
<string>Echart图表JS交互示例</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QWidget" name="widget" native="true"> <widget class="QWidget" name="widget" native="true">

View File

@ -1,10 +1,14 @@
#pragma execution_character_set("utf-8")
#include "widget.h" #include "widget.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
Widget w; Widget w;
w.setWindowTitle("回车自动跳转 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -10,9 +10,6 @@
<height>300</height> <height>300</height>
</rect> </rect>
</property> </property>
<property name="windowTitle">
<string>回车自动跳转</string>
</property>
<widget class="QLineEdit" name="lineEdit1"> <widget class="QLineEdit" name="lineEdit1">
<property name="geometry"> <property name="geometry">
<rect> <rect>

View File

@ -1,10 +1,14 @@
#pragma execution_character_set("utf-8")
#include "widget.h" #include "widget.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
Widget w; Widget w;
w.setWindowTitle("鼠标十字线 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>鼠标十字线</string> <string/>
</property> </property>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmNtpClient w; frmNtpClient w;
w.setWindowTitle("Ntp校时"); w.setWindowTitle("Ntp校时 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmTrayIcon w; frmTrayIcon w;
w.setWindowTitle("托盘图标"); w.setWindowTitle("托盘图标 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -1,10 +1,15 @@
#include "frmhotkey.h" #pragma execution_character_set("utf-8")
#include "frmhotkey.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
frmHotKey w; frmHotKey w;
w.setWindowTitle("全局热键示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();
} }

View File

@ -1,10 +1,15 @@
#include "widget.h" #pragma execution_character_set("utf-8")
#include "widget.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
Widget w; Widget w;
w.setWindowTitle("miniblink使用示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();
} }

View File

@ -10,9 +10,6 @@
<height>600</height> <height>600</height>
</rect> </rect>
</property> </property>
<property name="windowTitle">
<string>miniblink使用示例</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QWidget" name="widget" native="true"> <widget class="QWidget" name="widget" native="true">

View File

@ -1,4 +1,6 @@
#include "frmmain.h" #pragma execution_character_set("utf-8")
#include "frmmain.h"
#include "qapplication.h" #include "qapplication.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])
@ -6,7 +8,7 @@ int main(int argc, char *argv[])
QApplication a(argc, argv); QApplication a(argc, argv);
frmMain w; frmMain w;
w.setWindowTitle("qwtdemo"); w.setWindowTitle("qwt无插件示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -1,10 +1,15 @@
#include "frmshortcut.h" #pragma execution_character_set("utf-8")
#include "frmshortcut.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
frmShortCut w; frmShortCut w;
w.setWindowTitle("全局热键示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();
} }

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmBase64Helper w; frmBase64Helper w;
w.setWindowTitle("图片文字base64编码互换"); w.setWindowTitle("图片文字base64编码互换 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmCountCode w; frmCountCode w;
w.setWindowTitle("代码行数统计"); w.setWindowTitle("代码行数统计 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -27,7 +27,7 @@ int main(int argc, char *argv[])
AppKey::Instance()->start(); AppKey::Instance()->start();
frmMain w; frmMain w;
w.setWindowTitle("密钥使用示例"); w.setWindowTitle("密钥使用示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -23,7 +23,7 @@ int main(int argc, char *argv[])
#endif #endif
frmMain w; frmMain w;
w.setWindowTitle("密钥生成工具"); w.setWindowTitle("密钥生成工具 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -27,7 +27,7 @@ int main(int argc, char *argv[])
AppLive::Instance()->start(6666); AppLive::Instance()->start(6666);
frmMain w; frmMain w;
w.setWindowTitle("守护程序使用示例"); w.setWindowTitle("守护程序使用示例 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -25,7 +25,7 @@ int main(int argc, char *argv[])
#endif #endif
frmMain w; frmMain w;
w.setWindowTitle("程序启动器"); w.setWindowTitle("程序启动器 (QQ: 517216493 WX: feiyangqingyun)");
w.setFixedSize(w.sizeHint()); w.setFixedSize(w.sizeHint());
//启动托盘类 //启动托盘类

View File

@ -1,10 +1,14 @@
#pragma execution_character_set("utf-8")
#include "widget.h" #include "widget.h"
#include <QApplication> #include <QApplication>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
Widget w; Widget w;
w.setWindowTitle("存款计算器 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmPngTool w; frmPngTool w;
w.setWindowTitle("PNG图片警告去除工具"); w.setWindowTitle("PNG图片警告去除工具 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmFlatUI w; frmFlatUI w;
w.setWindowTitle("FlatUI控件集合"); w.setWindowTitle("FlatUI控件集合 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -16,8 +16,6 @@ frmMain::~frmMain()
void frmMain::initForm() void frmMain::initForm()
{ {
this->setWindowTitle("九宫格主界面");
bg = "main2.jpg"; bg = "main2.jpg";
QList<QToolButton *> btns = this->findChildren<QToolButton *>(); QList<QToolButton *> btns = this->findChildren<QToolButton *>();

View File

@ -26,6 +26,7 @@ int main(int argc, char *argv[])
} }
frmMain w; frmMain w;
w.setWindowTitle("九宫格主界面 (QQ: 517216493 WX: feiyangqingyun)");
QUIHelper::setFormInCenter(&w); QUIHelper::setFormInCenter(&w);
w.show(); w.show();

View File

@ -17,8 +17,6 @@ frmMain::~frmMain()
void frmMain::initForm() void frmMain::initForm()
{ {
this->setWindowTitle("metro风格主界面");
int iconSize = 50; int iconSize = 50;
int iconWidth = 100; int iconWidth = 100;
int iconHeight = 80; int iconHeight = 80;

View File

@ -16,6 +16,7 @@ int main(int argc, char *argv[])
QUIHelper::setCode(); QUIHelper::setCode();
frmMain w; frmMain w;
w.setWindowTitle("metro风格主界面 (QQ: 517216493 WX: feiyangqingyun)");
QUIHelper::setFormInCenter(&w); QUIHelper::setFormInCenter(&w);
w.show(); w.show();

View File

@ -30,7 +30,7 @@ int main(int argc, char *argv[])
#endif #endif
Widget w; Widget w;
w.setWindowTitle("视频流播放ffmpeg内核 (QQ: 517216493)"); w.setWindowTitle("视频流播放ffmpeg内核 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -27,7 +27,7 @@ int main(int argc, char *argv[])
#endif #endif
Widget w; Widget w;
w.setWindowTitle("视频流播放mpv内核 (QQ: 517216493)"); w.setWindowTitle("视频流播放mpv内核 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -27,7 +27,7 @@ int main(int argc, char *argv[])
#endif #endif
Widget w; Widget w;
w.setWindowTitle("视频流播放vlc内核 (QQ: 517216493)"); w.setWindowTitle("视频流播放vlc内核 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmVideoBox w; frmVideoBox w;
w.setWindowTitle("视频监控布局"); w.setWindowTitle("视频监控布局(QQ: 517216493 WX: feiyangqingyun)");
w.resize(800, 600); w.resize(800, 600);
w.show(); w.show();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmVideoPanel w; frmVideoPanel w;
w.setWindowTitle("视频监控画面"); w.setWindowTitle("视频监控画面 (QQ: 517216493 WX: feiyangqingyun)");
w.resize(800, 600); w.resize(800, 600);
w.show(); w.show();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmVideoWidget w; frmVideoWidget w;
w.setWindowTitle("视频监控控件"); w.setWindowTitle("视频监控控件 (QQ: 517216493 WX: feiyangqingyun)");
w.resize(800, 600); w.resize(800, 600);
w.show(); w.show();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmColorWidget w; frmColorWidget w;
w.setWindowTitle("屏幕拾色器"); w.setWindowTitle("屏幕拾色器 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -27,7 +27,7 @@ int main(int argc, char *argv[])
#endif #endif
frmFramelessWidget w; frmFramelessWidget w;
w.setWindowTitle("无边框窗体"); w.setWindowTitle("无边框窗体 (QQ: 517216493 WX: feiyangqingyun)");
w.resize(800, 600); w.resize(800, 600);
w.show(); w.show();

View File

@ -30,7 +30,7 @@ int main(int argc, char *argv[])
#endif #endif
frmGifWidget w; frmGifWidget w;
w.setWindowTitle("GIF录屏"); w.setWindowTitle("GIF录屏 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmLunarCalendarWidget w; frmLunarCalendarWidget w;
w.setWindowTitle("农历控件"); w.setWindowTitle("农历控件 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmMaskWidget w; frmMaskWidget w;
w.setWindowTitle("遮罩层窗体"); w.setWindowTitle("遮罩层窗体 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
#endif #endif
frmMoveWidget w; frmMoveWidget w;
w.setWindowTitle("通用移动类"); w.setWindowTitle("通用移动类 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();

View File

@ -28,7 +28,7 @@ int main(int argc, char *argv[])
#endif #endif
frmScreenWidget w; frmScreenWidget w;
w.setWindowTitle("屏幕截图"); w.setWindowTitle("屏幕截图 (QQ: 517216493 WX: feiyangqingyun)");
w.show(); w.show();
return a.exec(); return a.exec();