🔭
I’m currently working on: Squat at home
🌱
I’m currently learning: Any
📫
How to reach me: Wx: MenPenS612 QQ: 843261040
📮
Email: [email protected]
QtQml 控件 & 实用工具
License: MIT License
🔭
I’m currently working on: Squat at home
🌱
I’m currently learning: Any
📫
How to reach me: Wx: MenPenS612 QQ: 843261040
📮
Email: [email protected]
FramelessWindow/framelesswindow_all/framelesswindow.cpp
line 82,should add
event->accept();
before
setPosition(m_oldPos - m_startPos + event->globalPos());
README写的是5.13,但是代码里有的已经是5.15,有的用了内联组件等新语法,没法直接用低版本编译
你好,
感谢你提供的VideoOutput 源码 的例子, 加快了 我的开发速度。
我已经使用你的VideoOutput的项目,做了一个多视频显示的 测试程序, 它在电脑上跑起来比较正常。 但是放到我的ROCKCHIP开发板上,运行后,发现 不同的videooutput 的显示会相互 干扰: 比如 A位置的VideoOuput 图像有时会到B处, 反之亦然。
见附件工程。
有时间帮我检测一下,
我是通过你的代码开始学习qml的,表示感谢。
代码写的flags |= Qt.Tool | Qt.FramelessWindowHint;在任务栏没有图标
#include
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
format.setAlphaBufferSize(8); // 设置alpha缓冲区以支持透明度
QSurfaceFormat::setDefaultFormat(format);
完整代码如下
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
format.setAlphaBufferSize(8); // 设置alpha缓冲区以支持透明度
QSurfaceFormat::setDefaultFormat(format);
QGuiApplication app(argc, argv);
qmlRegisterType<FramelessWindow>("an.window", 1, 0, "FramelessWindow");
QQmlApplicationEngine engine;
const QUrl url(QStringLiteral("qrc:/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
&app, [url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl)
QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.load(url);
return app.exec();
}
FramelessWindow {
id: root
visible: true
width: 640
height: 480
minimumWidth: 480
minimumHeight: 320
color: "transparent"
title: qsTr("Hello World")
resizable: true
framelesswindow.obj:-1: error: LNK2019: 无法解析的外部符号 __imp_GetWindowLongW,函数 "public: __cdecl FramelessWindow::FramelessWindow(class QWindow *)" (??0FramelessWindow@@QEAA@PEAVQWindow@@@Z) 中引用了该符号 framelesswindow.obj:-1: error: LNK2019: 无法解析的外部符号 __imp_SetWindowLongPtrW,函数 "public: __cdecl FramelessWindow::FramelessWindow(class QWindow *)" (??0FramelessWindow@@QEAA@PEAVQWindow@@@Z) 中引用了该符号
需要加上#pragma comment(lib, "user32.lib")或者在pro中设置
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.