qnanopainter
qnanopainter copied to clipboard
General Window error after delete a QNanoQuickItem
I am modifiying "painting" component on "gallery" example project in order to check the behaviour of the library when creating and deleting QNanoQuickItem.
I made a simple change on "painting/main.qml"(Attached the code):
- No create PaintingItem by default, now it is a QML Component.
- Add "Add Item" button: When click, a PaintingItem is created
- Add "Delete Item" button: When click, the PaintingItem is destroyed.
I just start to play add and delete button and sometimes, after deleting the item, the UI is degraded (attached image).
Did you see this before? Is there something I can do for avoiding this?
Edit: just to add I am using QNANO_USE_RENDERNODE.
zip with code and image: qnanopainter_issue.zip
Tested the attached example with different Qt versions, pressed Add & Delete > 100 times and didn't see any problems...
My test platform was Dell XPS 15 (NVidia GTX 1050) + Windows 10 + QNanoPainter with QNANO_USE_RENDERNODE + Qt 5.9.1, Qt 5.10.0 and Qt 5.11.1. Please specify the platform you are having this problem to locate what could be causing it.
Environment: Qt5.9.3 + windows 10 + QNANO_USE_RENDERNODE
I have been checking on several PC with different hw and it is happening on every one. You can try to also make some drawing(handfree actions) maybe that will help to reproduce the issue.
On any case, we are also checking with no QNANO_USE_RENDERNODE and it looks like it is also working properly and no watching this issue. Also, this(http://kgronholm.blogspot.com/2017/03/qnanopainter-with-qt-58-and.html) article is encouraged me to disable QNANO_USE_RENDERNODE.