Bug in Qt 5.12 drag n'drop ?
-
@skylendar thats why we need a simple program, trimmed down to the actual problem.
Otherwise its hard to track down where the bug is. Until now it is not even proven that Qt is guilty.
-
- Qt is actually a commercial program, and most of you, if not all, are paid for debugging it
Actually this is a user forums and no one here is paid anything to help :)
We are not employees, but ordinary users of Qt.Anyway, i tried some of old drag drop sample with Qt 5.12 and
they seems to work. At least on windows. -
@skylendar said in Bug in Qt 5.12 drag n'drop ?:
And you forget something: Qt is actually a commercial program, and most of you, if not all, are paid for debugging it. Why should I work for you for free ?
If you happen to own a commercial license you should contact the customer support they may be able to help you more directly.
However they also will ask for a minimal compileable project, if your current project is considerably too large.
Alternatively there is also the option of paid consulting either from the QtCompany directly or other companies, like for example KDAB -
@skylendar
Hi
What about test with the sample that comes with Qt ?
http://doc.qt.io/qt-5/dnd.html#examples
There are often directly available in Creator. -
I can drag from my QTreeWidget, but I can't drop anymore my icon onto my QWidget target, whereas it worked in the previous version of qt (5.11).
Everything seems ok, but the dropEvent() method of my QWidget isn't activated (setAcceptDrop() is set to true, of course)
-
@skylendar
Check the
http://doc.qt.io/qt-5/qtwidgets-draganddrop-puzzle-example.html
as it drops from ListWidget to Widget. -
@skylendar said in Bug in Qt 5.12 drag n'drop ?:
The codes are very similar
So you should modify one of them until you hit or fix the problem...
-
@skylendar
Ok but it does not seems Qt related then as those sample didn't change between
5.11 and 5.12 so if they still work it seems unlikely something broke on Qt level. -
@Christian-Ehrlicher
it's exactly what I'm doing :-£ -
@skylendar said in Bug in Qt 5.12 drag n'drop ?:
My code didn't change between 5.11 and 5.12, and suddenly it doesn't work
This does not prove that there is a bug in Qt (though there could be).
It could be a problem in your code which didn't cause issues with Qt 5.11 but does with Qt 5.12.
So, before saying there is a bug in Qt you should really prove that. -
@jsulm said in Bug in Qt 5.12 drag n'drop ?:
t prove that there is a bug in
I also have an Application which has a drag n'drop problem since I've updated to Qt 5.12.0 (macOS 10.14.2 Mojave). The eventFilter method is not called anymore with QEvent::Drop
Therefore I can not drop anything into my QLineEdit derived object...
// MyLineEdit is derived from QLineEdit bool MyLineEdit::eventFilter(QObject* object, QEvent* event) { if(m_droppable) { if(event->type() == QEvent::DragEnter) { event->accept(); } // since Qt 5.12.0 the following condition is never true! if(event->type() == QEvent::Drop) { // this line is never reached // .. } } }