[solved] How to use obsolete members from a class. QUrl in my case
-
Hi everyone!
Im working on a project that was originally built on Qt 4.4.0 and im trying to make it work on the latest Qt. This is by far more complex than what I thought.
Right now im working with the QUrl class, my program is using the queryItemValue method. According to the documentation, that method is obsolete http://qt-project.org/doc/qt-5/qurl-obsolete.html#queryItemValue but I quote
bq. The following members of class QUrl are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
So, what I understand from this, is that Qt strongly advises not to use this method, but it still keeps it to be backwards compatible (and thats exacly what I want!).
When I try to compile the following error appears
bq. 'class QUrl' has no member named 'queryItemValue'
And indeed, the method doesnt exist. When I list all of the methods available on the class, that one doesnt appear
Why is it that I cant see this method? Do I have to place a compiler directive in order to make Qt use obsolete methods from classes?
Any point or guideline is strongly appreciated.
Im running Qt Creator 3.2.1 (opensource)
Based on Qt 5.3.2 (MSVC 2010, 32bit)
Built on Sep 12 2014 at 15:47:18Edit: Fixed spelling mistakes
-
Hi,
This "email":http://lists.qt-project.org/pipermail/development/2011-October/000088.html is what you are looking for