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. Build failure on getting start of Qt/Qml Tutorial sample
Qt 6.11 is out! See what's new in the release blog

Build failure on getting start of Qt/Qml Tutorial sample

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 585 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.
  • Stan HuangS Offline
    Stan HuangS Offline
    Stan Huang
    wrote on last edited by
    #1

    I followed steps in https://doc.qt.io/qt-5/qtdoc-tutorials-alarms-example.html to create a project using Qt-Creator and files shown at page bottom, AlarmDelegate.qml, AlarmModel.qml, AlarmDialog.qml, Tumbler.qml, ..., qml.qrc. When I built it, I got error: [debug:qrc_qml.cpp] Error 1

    What did I miss? What can I do to fix it?

    J.HilkJ 1 Reply Last reply
    0
    • Stan HuangS Stan Huang

      I followed steps in https://doc.qt.io/qt-5/qtdoc-tutorials-alarms-example.html to create a project using Qt-Creator and files shown at page bottom, AlarmDelegate.qml, AlarmModel.qml, AlarmDialog.qml, Tumbler.qml, ..., qml.qrc. When I built it, I got error: [debug:qrc_qml.cpp] Error 1

      What did I miss? What can I do to fix it?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      hi @Stan-Huang

      have you created a resource file as well and added your qml files to it ?
      Did you rerun make after creating and adding the qml files to the resource file?
      can you show more from the actual error?
      can you show more of your project?


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1
      • Stan HuangS Offline
        Stan HuangS Offline
        Stan Huang
        wrote on last edited by
        #3

        I re-created the project and added the *.qml files by right-clicking on 'Resouces' and selecting 'Add Existing Files". I built it then and found it succeeded. I run it successfully too.

        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