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. Error in documentation of Graphics View Framework
Qt 6.11 is out! See what's new in the release blog

Error in documentation of Graphics View Framework

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.0k 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.
  • M Offline
    M Offline
    mkuettler
    wrote on last edited by
    #1

    Hello.
    I'm not sure this is the right place to post this, but I didn't find a subforum that seemed the right place. In the "Drag and Drop documentation for the Graphics View Framework":http://qt-project.org/doc/qt-4.8/graphicsview.html#drag-and-drop the last line of the code sample is
    @
    drag->start();
    @

    which I think should be
    @
    drag->exec();
    @

    because QDrag does not have a function called start.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      According to the documentation "method start is of QDrag is obsolete since Qt 4.7":http://doc.qt.nokia.com/4.7-snapshot/qdrag-obsolete.html and method "exec":http://qt-project.org/doc/qt-5.0/qdrag.html#exec should be used instead.

      http://anavi.org/

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mkuettler
        wrote on last edited by
        #3

        Thanks for the clarification. I should have a better look next time before I claim to have found an error.
        Still it would be better if the documentation did not use the deprecated function.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="mkuettler" date="1340347445"]Thanks for the clarification. I should have a better look next time before I claim to have found an error.
          Still it would be better if the documentation did not use the deprecated function.[/quote]

          No problem, you are welcome. I am glad that I was able to help with QDrag documentation :)

          http://anavi.org/

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            IMO you might want to check out on "JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspa and eventually file a bug report for correcting the documentation. In addition you should add a doc note. Because that looks like a trap others might fall into as well.

            Vote the answer(s) that helped you to solve your issue(s)

            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