genbindings/config: prevent some classes from subclassing

This commit is contained in:
mappu 2024-11-23 19:34:38 +13:00
parent a5dafbf132
commit 7f2e4d07df

View File

@ -211,6 +211,20 @@ func AllowVirtualForClass(className string) bool {
return false
}
// Pure virtual method futureInterface() returns an unprojectable template type
if className == "QFutureWatcherBase" {
return false
}
// Pure virtual dtor (should be possible to support)
if className == "QObjectData" {
return false
}
if className == "QAccessibleObject" {
return false // undefined reference to `vtable for MiqtVirtualQAccessibleObject'
}
return true
}