一套框架,可以生成多平台的无边框窗体,拖动到屏幕底边,没有窗体大小异常问题。
1 运行成功
2 cmakelist.txt适配qt6.5+cmake3.19修改
如下:
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 参考链接
QVogenClient: Third-party Vogen Editor. (gitee.com)
SineStriker/qsynthesis-revenge: Cross-platform SVS frontend (github.com)