firemail
标题:
QVariant 存放指针
[打印本页]
作者:
Qter
时间:
2020-3-12 19:51
标题:
QVariant 存放指针
QVariant v = QVariant::fromValue((void *) yourPointerHere);
yourPointer = (YourClass *) v.value<void *>();
欢迎光临 firemail (http://firemail.wang:8088/)
Powered by Discuz! X3