Error in documentation of Graphics View Framework
-
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.
-
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.
-
[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 :)
-
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.