我有一个类实例需要由其他一些类访问.
error: calling a private constructor of class 'Foo'
要在QGraphicsView框架的上下文中进一步指定问题:我想添加QGraphicsItems,它由控制器类(管理项目)实例化到QGraphicsScene,这是(但我不坚持这个细节)我的成员QMainWindow类.
我花了相当多的时间在互联网上搜索,但我相当新,我有点被困在这里.对于解决困境的最佳方法,我表示赞赏.
c++ static global qgraphicsitem qgraphicsscene
c++ ×1
global ×1
qgraphicsitem ×1
qgraphicsscene ×1
static ×1