Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

review #1

wants to merge 1 commit into from

Conversation

skalniy
Copy link

@skalniy skalniy commented Dec 10, 2016

No description provided.

@@ -210,7 +215,7 @@ void PainterWindow::drawTree1(shared_ptr<tree> current)//void PainterWindow::dra
else {
QRectF blok1(current->left->coord.first, current->left->coord.second, 40, 40);
mScene->addRect(blok1);
auto mText1 = new QGraphicsSimpleTextItem();
auto mText1 = new QGraphicsSimpleTextItem(); // memory leak

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

оказывается, нет http://doc.qt.io/qt-4.8/qgraphicsscene.html#addItem
Adds or moves the item and all its childen to this scene. This scene takes ownership of the item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants