PacktPublishing / Mastering-Qt-5

Code repository for Mastering Qt 5 published by Packt
MIT License
205 stars 87 forks source link

Following examples in Ch. 4 for "MyToolbar" results in error #11

Closed Stokestack closed 3 years ago

Stokestack commented 5 years ago

Since Apple Books doesn't offer a proper page number, I can only refer to the part of Chapter 4 where you start working with QML files and you create one called MyToolbar.qml. The section starts with "Let's build a new MyToolbar componenet by creating a new file called MyToolbar.qml"

You then try to use it in main.qml, but that doesn't work. The result at runtime is: 2019-06-19 02:13:09.983412-0700 gallery-mobile[41325:10201510] qrc:/main.qml:17 MyToolbar is not a type

GuillaumeLazar commented 3 years ago

Can't reproduce.

Stokestack commented 3 years ago

Thanks for checking it out. Will re-file if I can repro in the future.

GuillaumeLazar commented 3 years ago

If you want try. Go on the second edition repository and download the source code. The first edition is deprecated and many bugs have been fixed in the second edition. https://github.com/PacktPublishing/Mastering-Qt-5-Second-Editon