Dimpik
@Dimpik

Qt Qml ошибка посе изменения имени файла Page1Form.qml?

Ошибка: NMAKE:-1: error: U1077: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\nmake.exe" .

NMAKE : fatal error U1073:
Stop.
NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\nmake.exe" :
Stop.
09:23:36: The process "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\nmake.exe" exited with code 2.
Error while building/deploying project TicTacToeAndroid (kit: Android)
When executing step "Make"

Я создал проект Android с готовой swipe основой, там была строчка кода:
Page1Form {

}

Это привязка к файлу qml. Мне нужно было переименовать файл Qml, я это сделал и потом в файле main.qml навел такой порядок при именах файлов PageBotForm.qml Page1V1Form.qml. Вот main.qml:
import QtQuick 2.12
import QtQuick.Controls 2.5

ApplicationWindow {
    width: 640
    height: 480
    visible: true
    title: qsTr("Tabs")

    SwipeView {
        id: swipeView
        anchors.fill: parent
        currentIndex: tabBar.currentIndex

        PageBotForm {

        }

        Page1V1Form {

        }
    }

    footer: TabBar {
        id: tabBar
        currentIndex: swipeView.currentIndex

        TabButton {
            text: qsTr("Page 1")
        }
        TabButton {
            text: qsTr("Page 2")
        }
    }
}

PageBotForm и Page1V1Form почти идентичны, вот один из них.
import QtQuick 2.12
import QtQuick.Controls 2.5

Page {
    id: v1v
    width: 600
    height: 400

    header: Label {
        text: qsTr("Page 2")
        font.pixelSize: Qt.application.font.pixelSize * 2
        padding: 10
    }

    Label {
        text: qsTr("You are on Page 2.")
        anchors.centerIn: parent
    }
}
  • Вопрос задан
  • 67 просмотров
Пригласить эксперта
Ответы на вопрос 1
Zifix
@Zifix Куратор тега Qt
Barbatum
У вас на шаге Make, в логе сборки никаких ошибок нет? Вы в .qrc файле тоже переименовали?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы