Skip to content
Qt 6.12 LTS is out! See what's new in the release blog
  • 145k Topics
    725k Posts
    FeRDNYCF
    @charan27 The page https://www.qt.io/development/download-open-source contains both an "Open Source Usage Obligations" section, and a FAQ question "What are my obligations when using Qt under the LGPL?" that covers all of that. The answer to the latter reads, Firstly, you have to note that all Qt open source modules are not available under LGPLv3 . Some modules are available under GPLv3 for open source usage, and e.g. 3rd party components such as Chromium web engine are provided under LGPLv2.1. When Qt modules and libraries under the LGPLv3, there are a couple of obligations you will need to fulfill: When using Open source software you need to be aware of and track the licensing of each sample, source code sniplet, module and library you use in your project. You will need to deliver the complete source code of Qt libraries you used, including all modifications you did or applied, to your users/customers. Alternatively, you need to provide a written offer with instructions on how to get the source code. Please also note that this has to be under your control, so a link to the source code provided by the Qt Project or Qt Company is not sufficient. The LGPL allows you to keep your own source code of your application private as long as it is “work that uses” the library. Dynamic linking is usually recommended here. The user of your application has to be able to re-link your application against a different or modified version of the Qt library. With LGPLv3 it is also explicitly stated that the user needs to be able to run the re-linked binary on its intended target device. It is your obligation to provide the user with all necessary tools to enable this process. For embedded devices, this includes making the full toolchain used to compile the library available to users. For parts licensed under LGPLv3 you are obliged to provide full instructions on how to install the modified library on the target device (this is not clearly stated with LGPLv2.1, although running the application against the modified version of the library clearly is the stated intention of the license). The user of an application or device using LGPL software has to be notified of their rights by providing a copy of the full LGPL terms and conditions text to the end user and displaying a prominent notice about your usage of LGPL software. The LGPL terms and conditions cannot in any way be restricted by other licensing terms. If an application is not fully complying to the obligations defined in the LGPL, it is not allowed to be distributed at all and you will lose all your rights to the LGPL software. The GPL has a tighter set of rules than the LGPL (Lesser GPL). Note that "Please also note that this has to be under your control, so a link to the source code provided by the Qt Project or Qt Company is not sufficient." regarding the Qt sources is at odds with what I said above. Since it's the Qt Project that's licensing the libraries to you, their advice should almost certainly take precedence over mine. (I can only say that I've never seen an open-source project that uses Qt as a dependency worry about distributing copies of the Qt source, but then I suppose most of them don't distribute binaries produced via PyInstaller so ¯\_(ツ)_/¯.)
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    JoeCFDJ
    It would be very nice to have LGPL for 3D stuff and then more people will use it. Coin3D does not seem well developed.
  • Everything related to designing and design tools

    135 411
    135 Topics
    411 Posts
    A
    Subject: Qt Design Studio 4.8: custom QML module is recognised and runs, but its section in the Components panel lists no items (designer/*.metainfo) Hi all, I have a small custom QML module that I want to appear as drag-and-drop items in the Components panel. The module resolves and runs, but its section in the Components panel has no arrow and no items. I have followed the documented steps and compared my files against Qt's own, and I am out of ideas. Any pointers would be appreciated. Environment Qt Design Studio 4.8 (qmlpuppet 4.8.3); kit in the status bar shows "Designer Qt 6.8.7" Windows, MSVC 2022 (x64), CMake with Ninja Module built with Qt 6.8.3 for MSVC 2022 64-bit (the only 6.8 kit the maintenance tool offered) Project file has enableCMakeGeneration: true The module (dummy names) A module "MyModule" with three plain QML types: ItemA, ItemB and ItemC (QtQuick only, no C++ code of my own). Folder form: MyModule/ qmldir ItemA.qml, ItemB.qml, ItemC.qml designer/ plugin.metainfo images/*.png (16px and 24px icons) qmldir: module MyModule typeinfo plugins.qmltypes ItemA 1.0 ItemA.qml ItemB 1.0 ItemB.qml ItemC 1.0 ItemC.qml designersupported plugin.metainfo (one Type shown, the others are the same shape): MetaInfo { Type { name: "MyModule.ItemA" icon: "images/itema-16px.png" Hints { visibleInNavigator: true; canBeDroppedInNavigator: true; canBeDroppedInFormEditor: true; canBeContainer: false; visibleInLibrary: true } ItemLibraryEntry { name: "ItemA" category: "My Category" libraryIcon: "images/itema-24px.png" version: "1.0" requiredImport: "MyModule" toolTip: qsTr("A sample item.") } } } I also built it as a module with qt_add_qml_module (URI MyModule, version 1.0, SHARED, DESIGNER_SUPPORTED, PLUGIN_TARGET set to the module's own target so that it is a single DLL) and copied the designer folder next to the generated qmldir. What happens "Add a Module" in the Components panel does not list MyModule. If I type "import MyModule" in the .ui.qml file, a "MyModule" section appears in the panel, but it cannot be expanded and has no items. importPaths in the .qmlproject: if the module sits outside the project folder (absolute path), the canvas and Navigator cannot resolve its types (no warning), although the app runs. If the module is inside the project ("imports" and "." in importPaths), the types resolve, appear in the Navigator and canvas, and their properties are editable. The Components panel stays empty in both cases. Built module with the .qml files present: same as 2 (types resolve, panel empty). Built module with the .qml files removed and a single DLL: the Run button works, but the types disappear from the canvas and Navigator. So the editor seems to need the .qml source, while the runtime can use the compiled module. The Issues and Output panels show no errors after I declared the module's folder in the project file (QmlFiles, ImageFiles, and Files for qmldir and *.metainfo). Design Studio's own qml.exe and Qt 6.8.3's qml.exe both load the built module and show the types, so the module itself is valid. What I have tried (no change in the Components panel) Icon references as :/qtquickplugin/..., :/ItemLibrary/..., and relative paths to PNGs next to the metainfo file; with and without libraryIcon, Hints and toolTip One metainfo file per type, then a single plugin.metainfo A stub plugins.qmltypes with a typeinfo line Keeping two copies of the module identical, in case a stale one was being read Closing and reopening the project after every change Comparing against Design Studio's built-in itemLibrary/*.metainfo files and Qt's QtQuick/Controls/designer/qtquickcontrols2.metainfo: the structure of mine is the same Following the six documented steps, including building the module with a Qt of the same minor version as Design Studio (6.8.3 against 6.8.7) [image: 6502e6a2-170b-491a-b49f-60c4f885ea37.png] Questions Is a QML-only module with designer/*.metainfo supposed to populate the Components panel in 4.8, or does it need a C++ plugin type or some other structure? Is there a log or environment variable that shows whether and why a metainfo file is rejected? I see nothing in Output or Issues. Is there a cache for item-library entries that needs clearing, and where is it stored? Does the editor really need the .qml source of a custom module to show its types, or is there a way to give it a compiled-only module? I can attach the module folder and the .qmlproject if that helps. Thanks in advance.
  • Everything related to the Software Quality Tools

    97 272
    97 Topics
    272 Posts
    C
    This had been reported to Squish technical support team, and closed on behalf of the reporter. Unfortunately it was not possible to identify a clear cause so far.
  • Everything related to learning Qt.

    403 2k
    403 Topics
    2k Posts
    A
    [image: 8eb48c3b-acfe-413e-a66c-abdccae786dc.png]
  • 2k Topics
    13k Posts
    jsulmJ
    @VikMorroHun said in blocked: cmake: command not found: In Linux I got more than 6000 hits How did you search to get 6000 hits?
  • 4k Topics
    18k Posts
    C
    找到原因了,账号密码错误导致的
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    P
    Unless I misunderstand, this topic was written when this forum used Textile, which explains why some of the above have broken formatting. This question is therefore no longer relevant for this forum. That being said, to anwer this question should anyone else land on this topic from a search engine, this should (now?) be possible. 🅭🄍