Results 1 to 5 of 5

Thread: QGlWidget issue on drag and drop

  1. #1
    Join Date
    Jul 2013
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QGlWidget issue on drag and drop

    Hi,

    I'm developing an application composed by a QMainWindow and several QDockWidgets. In the main window the central widget is a QGLWidget (there are no other widgets). One of these dock has a drag and drop mechanism which works fine when the widget is docked. When the widget is floating I'm not able to drag and drop. If I remove the OpengGL widget everything works fine. Is it possible that the QGLwidget is responsible for this kind of problem?


    Thanks.

  2. #2
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QGlWidget issue on drag and drop

    what you mean by "when the widget is floating"?
    can you attach a screen shot?
    what are you doing in GLWidget?
    how does it render?
    Last edited by saman_artorious; 25th July 2013 at 20:51.

  3. #3
    Join Date
    Jul 2012
    Posts
    53
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGlWidget issue on drag and drop

    I also have a similar problem on QGraphicsView. When I use QGLWidget as the viewport, items can be dropped on the view, but if I set the viewport to be QWidget, I cannot drop to the view any more. Anyone met this problem before?

  4. #4
    Join Date
    Jul 2013
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QGlWidget issue on drag and drop

    Here comes the screenshot, on the left you can find the floating qdockwidget whereas on the right there's the same application whith the widget docket within the main window. The QGLwidget renders a simple cube every 10ms using a timer but that's not the problem beacause even when I disable the rendering rutine the drag and drop still doesn't work.

    thanks

    Screenshot.jpg

  5. #5
    Join Date
    Aug 2012
    Location
    Loughborough, UK
    Posts
    29
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: QGlWidget issue on drag and drop

    is it worth registering an event filter on all the objects and children and use it to monitor what happens to any drag/drop events by logging which object they're bound for? might get you somewhere while waiting to see if anybody else has an answer?

    Rich

Similar Threads

  1. Replies: 0
    Last Post: 7th January 2012, 16:20
  2. Replies: 2
    Last Post: 13th October 2010, 22:51
  3. Replies: 3
    Last Post: 10th June 2010, 16:13
  4. Replies: 0
    Last Post: 4th May 2010, 11:24
  5. Drag and Drop (drop example)
    By din9 in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 19:03

Tags for this Thread

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.