Hey there trolltechers,
I'm using a QTextEdit dynaically allocated inside a widget:
- When the mouse enters: I create and place it.
- When the mouse leaves: I delete it.
Now I have glitches with the following:
- Contextual menu makes the app crash since the mouse leaves the parent widget:
solved it with : mTextBrowser->setContextMenuPolicy(Qt::NoContextMenu);
But :
- Drag and dropping makes the app crashes since the mouse leaves the parent too when dragging something.
I tried with deleteLater() and that doesn't solve a thing.
Any way to disable drag and dropping on a QTextEdit? Am I doing something wrong by creating deleting in the enter/leave event?
Thanks.
Bookmarks