Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGLWindow - drag event?
QtWS25 Last Chance

QOpenGLWindow - drag event?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qopenglwindowqdrag drag dropqdrag
7 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    Hey

    How can I get a drag event inside/or somewhere around window when I drag over it ?

    I use it with QWidget::createWindowContainer();

    TIA

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean doing drag and drop support like described here ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dariusz
        wrote on last edited by
        #3

        QopenGLWindow does not have any dragEnter/leave/move events... So I'm a tad lost how I can drop something on to it...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          One alternative is to use QOpenGLWidget which gives you the QWidget support for that.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          0
          • SGaistS SGaist

            One alternative is to use QOpenGLWidget which gives you the QWidget support for that.

            D Offline
            D Offline
            Dariusz
            wrote on last edited by
            #5

            @SGaist Wish I could but that had a lot of issues with DockWidgets, currently, I'm thinking of having a "ghost" widget over my gl window that could capture drag event/forward it. Just thought there is a better way.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Before going that way, what about re-implementing the event method to see if you get the drag related events ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • D Offline
                D Offline
                Dariusz
                wrote on last edited by
                #7

                Woah sweet! will do that thanks!

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved