Importazioni duplicate
Questa categoria di avviso viene indicata da qmllint con il nome " [duplicate-import] ".
Importazione duplicata
Cosa è successo?
Il documento contiene istruzioni di importazione duplicate.
Perché è un problema?
Inquinano inutilmente il documento e potrebbero rallentare l'avvio dell'app.
Esempio
import QtQuick.Controls
import QtQuick
import QtQuick 2.1 as QQ21
import QtQuick.Controls
Item {
}Per risolvere questo avviso, rimuovi tutte le dichiarazioni di importazione duplicate tranne l'ultima. Fai attenzione a non modificare l'ordine delle importazioni, poiché ciò potrebbe influire sulla risoluzione dei tipi:
import QtQuick
import QtQuick 2.1 as QQ21 // different from the previous import
import QtQuick.Controls
Item {
}© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.