Results 1 to 5 of 5

Thread: May I get XEvent from QDropEvent?

  1. #1
    Join Date
    Feb 2007
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default May I get XEvent from QDropEvent?

    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 ...
    ...
    }

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: May I get XEvent from QDropEvent?

    you could check QEvent::spontaneous () for events that are generated outside Qt.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: May I get XEvent from QDropEvent?

    J-P Nurmi

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: May I get XEvent from QDropEvent?

    Quote Originally Posted by jpn View Post
    Right! forgot about the x11 functions.

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

  5. #5
    Join Date
    Feb 2007
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: May I get XEvent from QDropEvent?

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.