Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Auto-completion for imports
Qt 6.11 is out! See what's new in the release blog

Auto-completion for imports

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qml
2 Posts 2 Posters 762 Views 2 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.
  • veryqtpersonV Offline
    veryqtpersonV Offline
    veryqtperson
    wrote on last edited by veryqtperson
    #1

    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?

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      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: https://bugreports.qt.io/browse/QTCREATORBUG-12315

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved