0
点赞
收藏
分享

微信扫一扫

framelesshelper框架学习

一世独秀 2022-12-03 阅读 104


目录

​​1  运行成功​​

​​2  cmakelist.txt适配qt6.5+cmake3.19修改​​

​​3  代码学习​​

​​4  参考链接​​

一套框架,可以生成多平台的无边框窗体,拖动到屏幕底边,没有窗体大小异常问题。

1  运行成功

framelesshelper框架学习_QT

 

framelesshelper框架学习_github_02

 

framelesshelper框架学习_qt_03

2  cmakelist.txt适配qt6.5+cmake3.19修改

如下:

framelesshelper框架学习_github_04

 

3  代码学习

// This file is autogenerated by CMake. Do not edit.

#include <QtQml/qqmlextensionplugin.h>

extern void qml_register_types_org_wangwenx190_FramelessHelper();
Q_GHS_KEEP_REFERENCE(qml_register_types_org_wangwenx190_FramelessHelper)

class org_wangwenx190_FramelessHelperPlugin : public QQmlEngineExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)

public:
org_wangwenx190_FramelessHelperPlugin(QObject *parent = nullptr) : QQmlEngineExtensionPlugin(parent)
{
volatile auto registration = &qml_register_types_org_wangwenx190_FramelessHelper;
Q_UNUSED(registration);
}
};



#include "FramelessHelperQuickplugin_org_wangwenx190_FramelessHelperPlugin.moc"

Q_LOGGING_CATEGORY(lcQuickModule, "wangwenx190.framelesshelper.quick.quickmodule")

#ifdef FRAMELESSHELPER_QUICK_NO_DEBUG_OUTPUT
# define INFO QT_NO_QDEBUG_MACRO()
# define DEBUG QT_NO_QDEBUG_MACRO()
# define WARNING QT_NO_QDEBUG_MACRO()
# define CRITICAL QT_NO_QDEBUG_MACRO()
#else
# define INFO qCInfo(lcQuickModule)
# define DEBUG qCDebug(lcQuickModule)
# define WARNING qCWarning(lcQuickModule)
# define CRITICAL qCCritical(lcQuickModule)
#endif

4  参考链接

​​pengguanjun/framelesshelper: Cross-platform window customization framework for Qt Widgets and Qt Quick. Supports Windows, Linux and macOS. (github.com)​​

​​QVogenClient: Third-party Vogen Editor. (gitee.com)​​

​​SineStriker/qsynthesis-revenge: Cross-platform SVS frontend (github.com)​​

举报

相关推荐

0 条评论