Auto-completion for imports

  • Qt version 5.7. When I import some module (and I noticed it with quite a few), auto-completion suggests me its versions. But it doesn't always have the latest available.

    For example, while importing QtQuick I get 2.5 auto-completed. And in the list of possible versions I see this:

    But actually the latest version available is 2.7 (and I can only find it out by guessing all the versions and watch the Application Output), so I can import it:

    import QtQuick 2.7

    Why is that?

  • Qt Creator's QML import auto-completion is unfortunately not very smart. It is not (yet?) capable of scanning which imports you actually have installed/available:

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.