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. Necessity of declaring library versions
Forum Updated to NodeBB v4.3 + New Features

Necessity of declaring library versions

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qtquickqmlqt 6.1.3
1 Posts 1 Posters 292 Views 1 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.
  • M Offline
    M Offline
    Matthew0x
    wrote on last edited by
    #1

    Hello,

    I am using the newest 6.1.3 version of Qt and I mostly play around QtQuick with pre-configured animation types (like already declared window/tabs classes etc.)

    I spent some time in the previous version of Qt (5.8?) and made myself a small application with some transparency in windows, custom SVG and like that. The point is, I believe that back then the headers like

    import QtQuick 2.9
    

    had the version explicitly specified.

    As of 6.1.3 I ran the application with just the "import QtQuick" (or similar) directives
    (it's the default behavior, I didn't change it until just now).
    It did compile, producing a working window with tabs and everything inside (labels for now).

    Summing up. I am trying to bring more content into my tabs and I want to create user input etc.
    I noticed that

    9d591b82-62ec-4393-a1a5-4ac51d7370c3-image.png

    this specific view panel (Form Editor) would have trouble rendering the objects inside the Page object.
    The point is, the compiler returns me warnings (not visible in compile output though), when the version isn't specified.

    d6fdec37-e8cd-49a6-9ad3-5cf01a2eab23-image.png

    The tab then doesn't render properly
    1871a732-d5d8-4cc0-af8b-a6da7c745362-image.png

    However, the program does compile
    29434290-2a5b-4422-9b42-d3c6a25b041e-image.png

    I can provide library versions and be able to continue, however the question is.
    Where do you find the lists of newest/compatible libraries?

    The editor does hint at some versions (in the form of available numbers), however it's not always reliable.
    When using the

    import Qt.labs.platform
    

    the text editor suggests version 1.0, which can't be compiled with the SystemTrayIcon object.
    I believe that the compiler can find the newest/compatible library and render/compile the objects, but the editor doesn't know where to find them?

    I must use this specific declaration without version number, or else I get the error:

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:16:9: "SystemTrayIcon.icon" is not available in Qt.labs.platform 1.0.
    

    Is this the expected behavior, am I doing something wrong?
    Where could I find the list of available libraries and their versions?

    I tried looking up the Qt 6 documentation, but it doesn't seem to provide those numbers.

    1 Reply Last reply
    0

    • Login

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