mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-03 08:35:28 +08:00
update
This commit is contained in:
@ -4,6 +4,7 @@ import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Qt.labs.platform
|
||||
import FluentUI
|
||||
import example
|
||||
import "qrc:///example/qml/component"
|
||||
import "qrc:///example/qml/global"
|
||||
|
||||
@ -207,6 +208,11 @@ CustomWindow {
|
||||
}
|
||||
}
|
||||
|
||||
//todo
|
||||
CircularReveal{
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
Image{
|
||||
id:img_cache
|
||||
visible: false
|
||||
|
6
example/src/component/CircularReveal.cpp
Normal file
6
example/src/component/CircularReveal.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "CircularReveal.h"
|
||||
|
||||
CircularReveal::CircularReveal()
|
||||
{
|
||||
|
||||
}
|
16
example/src/component/CircularReveal.h
Normal file
16
example/src/component/CircularReveal.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef CIRCULARREVEAL_H
|
||||
#define CIRCULARREVEAL_H
|
||||
|
||||
#include <QQuickItem>
|
||||
|
||||
class CircularReveal : public QQuickItem
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CircularReveal();
|
||||
|
||||
signals:
|
||||
|
||||
};
|
||||
|
||||
#endif // CIRCULARREVEAL_H
|
@ -6,6 +6,7 @@
|
||||
#include <QProcess>
|
||||
#include <FramelessHelper/Quick/framelessquickmodule.h>
|
||||
#include <FramelessHelper/Core/private/framelessconfig_p.h>
|
||||
#include "src/component/CircularReveal.h"
|
||||
#include "AppInfo.h"
|
||||
|
||||
FRAMELESSHELPER_USE_NAMESPACE
|
||||
@ -37,6 +38,8 @@ int main(int argc, char *argv[])
|
||||
app.setQuitOnLastWindowClosed(false);
|
||||
QQmlApplicationEngine engine;
|
||||
FramelessHelper::Quick::registerTypes(&engine);
|
||||
qmlRegisterType<CircularReveal>("example", 1, 0, "CircularReveal");
|
||||
|
||||
appInfo->init(&engine);
|
||||
const QUrl url(QStringLiteral("qrc:/example/qml/App.qml"));
|
||||
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
|
||||
|
Reference in New Issue
Block a user