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. Bug in Qt 5.12 drag n'drop ?

Bug in Qt 5.12 drag n'drop ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qat 5.12 drag ndrop
57 Posts 12 Posters 15.4k 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.
  • aha_1980A aha_1980

    @skylendar Thanks, but I don't think I'll debug your program ;)

    I have too much of my own problems

    S Offline
    S Offline
    skylendar
    wrote on last edited by
    #19

    @aha_1980

    I don't ask you to debug my app, just run it.

    1 Reply Last reply
    0
    • aha_1980A aha_1980

      @skylendar Thanks, but I don't think I'll debug your program ;)

      I have too much of my own problems

      S Offline
      S Offline
      skylendar
      wrote on last edited by
      #20

      @aha_1980

      In addition, I don't want anything. I just signal a possible bug. That's all.

      aha_1980A 1 Reply Last reply
      0
      • S skylendar

        @aha_1980

        In addition, I don't want anything. I just signal a possible bug. That's all.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by aha_1980
        #21

        @skylendar thats why we need a simple program, trimmed down to the actual problem.

        Otherwise its hard to track down where the bug is. Until now it is not even proven that Qt is guilty.

        Qt has to stay free or it will die.

        S 2 Replies Last reply
        1
        • aha_1980A aha_1980

          @skylendar thats why we need a simple program, trimmed down to the actual problem.

          Otherwise its hard to track down where the bug is. Until now it is not even proven that Qt is guilty.

          S Offline
          S Offline
          skylendar
          wrote on last edited by
          #22

          @aha_1980

          This is not a matter of guilt or not. We are not in an american thriller.
          And besides, how do you explain that my app works fine with qt5.11 and below, but not with qt5.12 ?

          1 Reply Last reply
          0
          • aha_1980A aha_1980

            @skylendar thats why we need a simple program, trimmed down to the actual problem.

            Otherwise its hard to track down where the bug is. Until now it is not even proven that Qt is guilty.

            S Offline
            S Offline
            skylendar
            wrote on last edited by
            #23

            @aha_1980

            And you forget something: Qt is actually a commercial program, and most of you, if not all, are paid for debugging it. Why should I work for you for free ?

            mrjjM J.HilkJ 2 Replies Last reply
            -2
            • S skylendar

              @aha_1980

              And you forget something: Qt is actually a commercial program, and most of you, if not all, are paid for debugging it. Why should I work for you for free ?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #24

              @skylendar

              • Qt is actually a commercial program, and most of you, if not all, are paid for debugging it

              Actually this is a user forums and no one here is paid anything to help :)
              We are not employees, but ordinary users of Qt.

              Anyway, i tried some of old drag drop sample with Qt 5.12 and
              they seems to work. At least on windows.

              1 Reply Last reply
              5
              • S skylendar

                @aha_1980

                And you forget something: Qt is actually a commercial program, and most of you, if not all, are paid for debugging it. Why should I work for you for free ?

                J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on last edited by
                #25

                @skylendar said in Bug in Qt 5.12 drag n'drop ?:

                @aha_1980

                And you forget something: Qt is actually a commercial program, and most of you, if not all, are paid for debugging it. Why should I work for you for free ?

                If you happen to own a commercial license you should contact the customer support they may be able to help you more directly.

                However they also will ask for a minimal compileable project, if your current project is considerably too large.
                Alternatively there is also the option of paid consulting either from the QtCompany directly or other companies, like for example KDAB


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                S 1 Reply Last reply
                2
                • J.HilkJ J.Hilk

                  @skylendar said in Bug in Qt 5.12 drag n'drop ?:

                  @aha_1980

                  And you forget something: Qt is actually a commercial program, and most of you, if not all, are paid for debugging it. Why should I work for you for free ?

                  If you happen to own a commercial license you should contact the customer support they may be able to help you more directly.

                  However they also will ask for a minimal compileable project, if your current project is considerably too large.
                  Alternatively there is also the option of paid consulting either from the QtCompany directly or other companies, like for example KDAB

                  S Offline
                  S Offline
                  skylendar
                  wrote on last edited by
                  #26

                  @J.Hilk

                  Who has a linux dnd program which can be tested ?

                  mrjjM 1 Reply Last reply
                  0
                  • S skylendar

                    @J.Hilk

                    Who has a linux dnd program which can be tested ?

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #27

                    @skylendar
                    Hi
                    What about test with the sample that comes with Qt ?
                    http://doc.qt.io/qt-5/dnd.html#examples
                    There are often directly available in Creator.

                    S 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      @skylendar
                      Hi
                      What about test with the sample that comes with Qt ?
                      http://doc.qt.io/qt-5/dnd.html#examples
                      There are often directly available in Creator.

                      S Offline
                      S Offline
                      skylendar
                      wrote on last edited by
                      #28

                      @mrjj

                      Found the puzzle in the examples. It works, but in my case the draggable widget is placed in a QTreeWidget, not just an ordinary QWidget.

                      mrjjM 1 Reply Last reply
                      0
                      • S skylendar

                        @mrjj

                        Found the puzzle in the examples. It works, but in my case the draggable widget is placed in a QTreeWidget, not just an ordinary QWidget.

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #29

                        Hi
                        well it its almost the same unless you used
                        QStandardItemModel::dropMimeData()
                        or something like that.

                        S 1 Reply Last reply
                        0
                        • mrjjM mrjj

                          Hi
                          well it its almost the same unless you used
                          QStandardItemModel::dropMimeData()
                          or something like that.

                          S Offline
                          S Offline
                          skylendar
                          wrote on last edited by skylendar
                          #30

                          @mrjj

                          I can drag from my QTreeWidget, but I can't drop anymore my icon onto my QWidget target, whereas it worked in the previous version of qt (5.11).

                          Everything seems ok, but the dropEvent() method of my QWidget isn't activated (setAcceptDrop() is set to true, of course)

                          mrjjM 1 Reply Last reply
                          0
                          • S skylendar

                            @mrjj

                            I can drag from my QTreeWidget, but I can't drop anymore my icon onto my QWidget target, whereas it worked in the previous version of qt (5.11).

                            Everything seems ok, but the dropEvent() method of my QWidget isn't activated (setAcceptDrop() is set to true, of course)

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #31

                            @skylendar
                            Check the
                            http://doc.qt.io/qt-5/qtwidgets-draganddrop-puzzle-example.html
                            as it drops from ListWidget to Widget.

                            S 1 Reply Last reply
                            0
                            • mrjjM mrjj

                              @skylendar
                              Check the
                              http://doc.qt.io/qt-5/qtwidgets-draganddrop-puzzle-example.html
                              as it drops from ListWidget to Widget.

                              S Offline
                              S Offline
                              skylendar
                              wrote on last edited by
                              #32

                              @mrjj

                              But I already did that... The codes are very similar, but in my case it doesn't work anymore

                              mrjjM 1 Reply Last reply
                              0
                              • Christian EhrlicherC Offline
                                Christian EhrlicherC Offline
                                Christian Ehrlicher
                                Lifetime Qt Champion
                                wrote on last edited by
                                #33

                                @skylendar said in Bug in Qt 5.12 drag n'drop ?:

                                The codes are very similar

                                So you should modify one of them until you hit or fix the problem...

                                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                Visit the Qt Academy at https://academy.qt.io/catalog

                                S 1 Reply Last reply
                                0
                                • S skylendar

                                  @mrjj

                                  But I already did that... The codes are very similar, but in my case it doesn't work anymore

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #34

                                  @skylendar
                                  Ok but it does not seems Qt related then as those sample didn't change between
                                  5.11 and 5.12 so if they still work it seems unlikely something broke on Qt level.

                                  S 1 Reply Last reply
                                  0
                                  • mrjjM mrjj

                                    @skylendar
                                    Ok but it does not seems Qt related then as those sample didn't change between
                                    5.11 and 5.12 so if they still work it seems unlikely something broke on Qt level.

                                    S Offline
                                    S Offline
                                    skylendar
                                    wrote on last edited by
                                    #35

                                    @mrjj

                                    On the contrary ! My code didn't change between 5.11 and 5.12, and suddenly it doesn't work...

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • Christian EhrlicherC Christian Ehrlicher

                                      @skylendar said in Bug in Qt 5.12 drag n'drop ?:

                                      The codes are very similar

                                      So you should modify one of them until you hit or fix the problem...

                                      S Offline
                                      S Offline
                                      skylendar
                                      wrote on last edited by
                                      #36

                                      @Christian-Ehrlicher
                                      it's exactly what I'm doing :-£

                                      1 Reply Last reply
                                      0
                                      • S skylendar

                                        @mrjj

                                        On the contrary ! My code didn't change between 5.11 and 5.12, and suddenly it doesn't work...

                                        jsulmJ Online
                                        jsulmJ Online
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #37

                                        @skylendar said in Bug in Qt 5.12 drag n'drop ?:

                                        My code didn't change between 5.11 and 5.12, and suddenly it doesn't work

                                        This does not prove that there is a bug in Qt (though there could be).
                                        It could be a problem in your code which didn't cause issues with Qt 5.11 but does with Qt 5.12.
                                        So, before saying there is a bug in Qt you should really prove that.

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        A 1 Reply Last reply
                                        1
                                        • jsulmJ jsulm

                                          @skylendar said in Bug in Qt 5.12 drag n'drop ?:

                                          My code didn't change between 5.11 and 5.12, and suddenly it doesn't work

                                          This does not prove that there is a bug in Qt (though there could be).
                                          It could be a problem in your code which didn't cause issues with Qt 5.11 but does with Qt 5.12.
                                          So, before saying there is a bug in Qt you should really prove that.

                                          A Offline
                                          A Offline
                                          armindev
                                          wrote on last edited by
                                          #38

                                          @jsulm said in Bug in Qt 5.12 drag n'drop ?:

                                          t prove that there is a bug in

                                          I also have an Application which has a drag n'drop problem since I've updated to Qt 5.12.0 (macOS 10.14.2 Mojave). The eventFilter method is not called anymore with QEvent::Drop

                                          Therefore I can not drop anything into my QLineEdit derived object...

                                          // MyLineEdit is derived from QLineEdit
                                          
                                          bool MyLineEdit::eventFilter(QObject* object, QEvent* event)
                                          {
                                          
                                              if(m_droppable) {
                                          
                                                  if(event->type() == QEvent::DragEnter) {
                                                      event->accept();
                                                  }
                                          
                                                  // since Qt 5.12.0 the following condition is never true! 
                                                  if(event->type() == QEvent::Drop) {
                                                       // this line is never reached
                                                       // ..
                                                  }
                                          
                                              }
                                          }
                                          
                                          
                                          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