Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19457

QStringList::sort() documentation cannot be found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.5.0
    • Fix Version/s: None
    • Component/s: Documentation, Editors
    • Labels:
      None
    • Environment:
      Windows 7

      Description

      Steps to reproduce:

      QT -= gui
      
      CONFIG += c++11
      
      DEFINES += QT_DEPRECATED_WARNINGS
      DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050000
      
      SOURCES += main.cpp
      #include <QtCore>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
      
          QStringList names;
          names.sort();
      
          return a.exec();
      }

      Go to the function call of sort() and press F1. Result: The documentation panel complains it cannot find the docs regarding this function. Go to the object definition and press F1. Result: The documentation panel opens QStringList docs.

      Also QStringList::sort() is not highligthed, so probably the C++ analyzer is not able to handle it for some reason. Please see the attached screencast. Also once it opened docs for QCoreApplication::exec() instead of QStringList::sort().

       

      Build environment: Qt 5.9.2 with MSVC 2015 and MinGW.

      Plugin information:
      
      + Android                 4.5.0
      + AutoTest                4.5.0
        AutotoolsProjectManager 4.5.0
        BareMetal               4.5.0
        Bazaar                  4.5.0
      + Beautifier              4.5.0
      + BinEditor               4.5.0
      + Bookmarks               4.5.0
      + CMakeProjectManager     4.5.0
        CVS                     4.5.0
        ClangCodeModel          4.5.0
        ClangPchManager         4.5.0
        ClangRefactoring        4.5.0
      + ClangStaticAnalyzer     4.5.0
      + ClassView               4.5.0
        ClearCase               4.5.0
      + CodePaster              4.5.0
      + Core                    4.5.0
      + CppEditor               4.5.0
      + CppTools                4.5.0
      + Debugger                4.5.0
      + Designer                4.5.0
      + DiffEditor              4.5.0
        EmacsKeys               4.5.0
      + FakeVim                 4.5.0
        GLSLEditor              4.5.0
      + GenericProjectManager   4.5.0
      + Git                     4.5.0
        HelloWorld              4.5.0
      + Help                    4.5.0
      + ImageViewer             4.5.0
        Ios                     4.5.0
      + Macros                  4.5.0
        Mercurial               4.5.0
        ModelEditor             4.5.0
        Nim                     4.5.0
        Perforce                4.5.0
      + ProjectExplorer         4.5.0
        PythonEditor            4.5.0
        QbsProjectManager       4.5.0
      + QmakeAndroidSupport     4.5.0
      + QmakeProjectManager     4.5.0
      + QmlDesigner             4.5.0
      + QmlJSEditor             4.5.0
      + QmlJSTools              4.5.0
      + QmlProfiler             4.5.0
      + QmlProjectManager       4.5.0
        Qnx                     4.5.0
      + QtSupport               4.5.0
        RemoteLinux             4.5.0
      + ResourceEditor          4.5.0
        ScxmlEditor             4.5.0
        SilverSearcher          4.5.0
      + Subversion              4.5.0
      + TaskList                4.5.0
      + TextEditor              4.5.0
      + Todo                    4.5.0
      + UpdateInfo              4.5.0
        Valgrind                4.5.0
      + VcsBase                 4.5.0
        Welcome                 4.5.0
        WinRt                   4.5.0
      
      Qt Creator 4.5.0
      Основан на Qt 5.10.0 (MSVC 2015, 32 бита)
      From revision fcea6ceba6
      Built on Dec  4 2017 04:12:35

        Attachments

        1. 2017-12-14 13-25-20.jpg
          2017-12-14 13-25-20.jpg
          27 kB
        2. hash-and-sort.pro
          0.1 kB
        3. main.cpp
          0.2 kB
        4. SNAG-14.12.2017-13.27.17.mp4
          2.50 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              dmitrymq dmitrymq
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes