用过QT矢量图系统的,肯定知道QGraphicsScene的addItem函数效率一般,
当加很多QGraphicsItem就会很慢,于是想把addItem这个操作放到线程中完成,
结果会出现
Windows has triggered a breakpoint in chip.exe.
This may be due to a corruption of the heap, which indicates a bug in chip.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while chip.exe has focus.
The output window may have more diagnostic information.
真心苦恼啊!
难道只能在主线程操作QGraphicsScene的addItem和delItem?