중복된 임포트
qmllint에서는 이 경고 범주를 ‘ [duplicate-import] ’으로 표기합니다.
중복 임포트
무슨 일이 발생했나요?
문서에 중복된 임포트 문이 포함되어 있습니다.
왜 문제가 될까요?
문서를 불필요하게 복잡하게 만들고 앱의 시작 속도를 저하시킬 수 있습니다.
예시
import QtQuick.Controls
import QtQuick
import QtQuick 2.1 as QQ21
import QtQuick.Controls
Item {
}이 경고를 해결하려면 중복된 import 문 중 마지막 것을 제외한 나머지를 모두 제거하세요. import 순서를 변경하면 타입 해결에 영향을 줄 수 있으므로 주의하세요:
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.