With the &, it looks like it's using a bitmask. Make sure that the dropAction() and supportedDropActions() values are arranged correctly, as a bitmask.
00100 * 00111 = 00100, return true. Therefore the only other thing is it is a mime issue?
Sent: Monday, March 27, 2017 at 9:28 AM
From: "Etienne Sandré-Chardonnal" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Interest] Model/Views and Drag&Drop actions
From: "Etienne Sandré-Chardonnal" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Interest] Model/Views and Drag&Drop actions
Dear all,
I have two custom models associated with views and I would like to drag from model A and drop into model B.if (mime->hasFormat(modelTypes.at(i))
&& (e->dropAction() & model->supportedDropActions()))
return true;
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
