Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, October 1998
RE: QDragManager::drag() always returns FALSE


Message 1 in thread


On 29-Sep-98 Brian White wrote:
> In the file "src/kernel/qdnd_x11.cpp", at the end of the function
> "QDragManager::drag", there are the lines:
> 
>     qApp->enter_loop();
>     return FALSE;
> 
> Thus, all of the drag functions always return FALSE.
> 
> In the file "src/kernel/qdragobject.cpp", however, those functions that
> call the above state that:
> 
>   Starts a drag operation using the contents of this object.
> 
>   The drag will use [...] mode.
> 
>   Returns TRUE if the dragged data was successfully moved,
>   indicating that the caller should remove the data.
> 
>   It does not return until the drag is complete.
> 
> This is obviously untrue because of the "return FALSE;" line in ::drag().
> 
> 
> Is this a mistake or is the DnD protocol simply unfinished?

I just noticed this also. The DragMove functionality is exactly what I want for
my application. Tried to reimplement the QDragObject::drag but then I didn't
know if a widget had accepted the dragobject or not. Will DragMove be added in
Qt-1.42 or do I have to wait until 2.0? Do anyone here know of a workaround?

Regards,
/Jonas U

------------------------------------------------------
Jonas Utterstrom <jonas.utterstrom@vittran.norrnod.se>