摘要: class QMetaMethodPrivate : public QMetaMethodInvoker { public: static const QMetaMethodPrivate *get(const QMetaMethod *q) { return static_cast<const Q 阅读全文
posted @ 2024-10-27 12:06 MarsCactus 阅读(108) 评论(0) 推荐(0)
摘要: bool QMetaMethod::invoke(QObject *object, Qt::ConnectionType connectionType, QGenericReturnArgument returnValue, QGenericArgument val0, QGenericArgume 阅读全文
posted @ 2024-10-27 10:01 MarsCactus 阅读(60) 评论(0) 推荐(0)
摘要: #pragma once #include <qobject.h> #include <string> using namespace std; class Person : public QObject { Q_OBJECT public: Q_INVOKABLE Person(int age, 阅读全文
posted @ 2024-10-26 18:57 MarsCactus 阅读(70) 评论(0) 推荐(0)
摘要: 此图为Qt5.x中源码 此图为Qt6.x中源码 阅读全文
posted @ 2024-10-26 15:52 MarsCactus 阅读(24) 评论(0) 推荐(0)
摘要: #define QT_FOR_EACH_STATIC_TYPE(F)\ QT_FOR_EACH_STATIC_PRIMITIVE_TYPE(F)\ QT_FOR_EACH_STATIC_PRIMITIVE_POINTER(F)\ QT_FOR_EACH_STATIC_CORE_CLASS(F)\ Q 阅读全文
posted @ 2024-10-24 11:59 MarsCactus 阅读(29) 评论(0) 推荐(0)
摘要: The $ character identifies a string literal as an interpolated string. An interpolated string is a string literal that might contain interpolation exp 阅读全文
posted @ 2024-10-18 23:10 MarsCactus 阅读(33) 评论(0) 推荐(0)
摘要: Expression body definitions let you provide a member's implementation in a concise, readable form. You can use an expression body definition whenever 阅读全文
posted @ 2024-10-18 23:01 MarsCactus 阅读(30) 评论(0) 推荐(0)
摘要: https://itanium-cxx-abi.github.io/cxx-abi/abi.html#member-pointers 2.3 Member Pointers 2.3.1 Data Member Pointers The basic ABI properties of data mem 阅读全文
posted @ 2024-09-30 18:57 MarsCactus 阅读(23) 评论(0) 推荐(0)
摘要: -Xclang -fdump-record-layouts 下面是一张更改了部分代码的示意图,下图中是基于Clang编译器的结果 下面代码片段是基于GCC的结果,其中的jmp 后的地址,gcc是以.LTHUNK0 , .LTHUNK1, .LTHUNK2 来表示Base::Foo , Base2:: 阅读全文
posted @ 2024-09-27 22:06 MarsCactus 阅读(14) 评论(0) 推荐(0)
摘要: Qt中为WindowSystemEvent事件定义了处理函数Handler,通过宏定义和模版来声明定义 QT_DEFINE_QPA_EVENT_HANDLER Matches (25 in 1 files) qwindowsysteminterface.cpp (gui\kernel) line 1 阅读全文
posted @ 2024-09-26 14:51 MarsCactus 阅读(63) 评论(0) 推荐(0)