В чем причина накладных расходов на функцию childItems() в Qt C++ QGraphicsItems? ⇐ C++
В чем причина накладных расходов на функцию childItems() в Qt C++ QGraphicsItems?
void MyGraphcisItem::updateChildItems() { QList items = this->childItems(); **updateChildItems(); } } QList items = this->childItems(); It takes too long. The more items there are, the longer it takes. Is there a way to avoid it? Actually, I wonder what's taking so long.
Источник: https://stackoverflow.com/questions/781 ... qt-c-qgrap
void MyGraphcisItem::updateChildItems() { QList items = this->childItems(); **updateChildItems(); } } QList items = this->childItems(); It takes too long. The more items there are, the longer it takes. Is there a way to avoid it? Actually, I wonder what's taking so long.
Источник: https://stackoverflow.com/questions/781 ... qt-c-qgrap
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение