【发布时间】:2014-05-20 14:42:28
【问题描述】:
我在我的 Qt 项目中的一个类中动态分配一个结构。然后我将指向这个结构的指针传递给另一个类中的另一个变量。然后在某些情况下我删除第一个分配,所以我不会再有结构了!现在问题来了:
I want my second pointer to find out if the slot it is pointing to is allocated or not, how can I do that?
提前谢谢你, 如果您需要我的代码的任何部分,请告诉我
【问题讨论】:
-
这里讨论了相同的 isuee - [LINK][1] [1]: stackoverflow.com/questions/3065092/…