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. Qt5.1.1 drag and drop problem
Qt 6.11 is out! See what's new in the release blog

Qt5.1.1 drag and drop problem

Scheduled Pinned Locked Moved General and Desktop
23 Posts 2 Posters 10.1k Views 1 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #13

    What did you drop on the widget ? I've just tested the dropsite example again (still with MinGW) and dropped a couple of files on it and its working.

    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
    • A Offline
      A Offline
      airwaywong
      wrote on last edited by
      #14

      I dropped a file from file explorer. Also multiple files worked.

      Now I am wondering if there is some dll corrupted or incompatible with Qt in my Windows 7 system. Is there any way to ensure all dependent dlls have proper version?

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

        You can try Dependency Walker on your executable. If it can find Qt libraries it means that there's a set of them on your system in your PATH that might be interfering

        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
        • A Offline
          A Offline
          airwaywong
          wrote on last edited by
          #16

          Thank for the tip!

          Finally I found out my firewall blocks some access permission of the compiled binaries. After adding the binaries into exception list, it works fine if I compiled using command line tools (qmake, jom).

          The version I am using now is

          • qt-windows-opensource-5.1.1-msvc2012_opengl-x86_64-offline.exe
          • qt-vs-addin-1.2.2-opensource.exe.

          I assume I should not use QtANGLE lib. In VS2012, I tried to remove preprocessor definition "QT_OPENGL_ES_2" and "QT_OPENGL_ES_2_ANGLE", and compile the code. Now I got error:

          LNK1104: cannot open file 'libEGLd.lib'

          Could you give some hint how I can solve this problem? I tried to search the forum, but no luck.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            airwaywong
            wrote on last edited by
            #17

            Also according to makespecs/win32-msvc2012/qmake.conf, the error message means QMAKE_LIBS_OPENGL_ES2_DEBUG was used for linking. However, I would expect QMAKE_LIBS_OPENGL should be used.

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

              Indeed, there might be a packaging or naming issue, did you try the angle package ?

              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
              • A Offline
                A Offline
                airwaywong
                wrote on last edited by
                #19

                There is no include/QtANGLE directory in the installed directory. Could you let me know how I can try angle package?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  airwaywong
                  wrote on last edited by
                  #20

                  BTW, I did see GL lib files defined by QMAKE_LIBS_OPENGL under C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86 and C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64. Not sure how I can force to link against QMAKE_LIBS_OPENGL.

                  QMAKE_LIBS_OPENGL = glu32.lib opengl32.lib gdi32.lib user32.lib

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

                    Are you sure you are using the OpenGL Qt version ? Did you uninstall the other versions before installing that one ?

                    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
                    • A Offline
                      A Offline
                      airwaywong
                      wrote on last edited by
                      #22

                      Yes, I have uninstalled previous versions and even deleted the leftover directories.

                      After installation, qt-windows-opensource-5.1.1-msvc2012-x86_64-offline.exe has QtANGLE directory, while qt-windows-opensource-5.1.1-msvc2012_opengl-x86_64-offline.exe hasn't.

                      I assume qt-windows-opensource-5.1.1-msvc2012_opengl-x86_64-offline.exe is the OpenGL Qt version. And that is the one I installed.

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

                        Indeed, if the name doesn't contain OpenGL it's an ANGLE build

                        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

                        • Login

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