Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 qt5 的大理石,并且在执行这些代码行时收到此错误消息。有什么想法吗?(可能是我缺少任何包裹吗?)谢谢!
styleArch = new Marble::GeoDataStyle; styleArch->setIconStyle( *icon ); place->setStyle( styleArch );
API 从指针更改为共享指针。这应该有效:
styleArch = new Marble::GeoDataStyle; styleArch->setIconStyle( *icon ); place->setStyle( Marble::GeoDataStyle::Ptr( styleArch ) );