PDA

View Full Version : May I get XEvent from QDropEvent?



alfa_wu
16th March 2007, 10:35
Hi,

I need some information from XEvent when QtDnD finished.
May I get XEvent from QDropEvent?

For example,
void myQwidget::dropEvent(QDropEvent *event)
{
...
//I wanted get XEvent here ...
...
}

high_flyer
16th March 2007, 11:12
you could check QEvent::spontaneous () for events that are generated outside Qt.

jpn
16th March 2007, 12:58
Try QWidget::x11Event().

high_flyer
16th March 2007, 13:06
Try QWidget::x11Event().
Right! forgot about the x11 functions.

@alfa_wu: you are aware that by using this you are loosing your portability...

alfa_wu
19th March 2007, 01:43
Because I embedded Motif Widget into Qt Widget, I need "XEvent' when QtDnD drop into QWidget.
I need some information from XEvent.
The QEvent::spontaneous() can not deliver it.
However, thanks your reply.