I have some Qt properties and signals that are generated at runtime and I want to link them as if it were declared using the Q_PROPERTY
macro. Is it possible?
Why I'm trying to do this: I made a COM component in C# that I am consuming in Qt using QAxObject
. When I load the COM component at runtime, my COM properties get automatically converted to Qt properties and my COM property changed events to Qt signals. I want to link the Qt properties to their corresponding onChanged signals.
Looking at the QAxBase
code, it looks like Qt would automatically do what I want if my COM component supported the IPropertyNotifySink
interface, but from what I could tell (with much research and trial and error) it's not possible to do so from C# .NET.