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. Qt Quick 5.0.1 Chapter 6 Example is not viewable
Forum Updated to NodeBB v4.3 + New Features

Qt Quick 5.0.1 Chapter 6 Example is not viewable

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.1k 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.
  • A Offline
    A Offline
    alexandros
    wrote on last edited by
    #1

    I am under Ubuntu 13.04

    I am trying to build a QML extension and I downloaded the package qtquick1-5-examples (5.0.1) so as to see some examples.

    When I try to run the chapter6 example (which in my system is located under $QT_DIR/examples/declarative/tutorials/extending/chapter6-plugins/), I get the error:

    @
    $ qmlviewer app.qml
    Qml debugging is enabled. Only use this in a safe environment!
    file:///usr/lib/i386-linux-gnu/qt5/examples/declarative/tutorials/extending/chapter6-plugins/app.qml:45:5: PieChart is not a type
    PieChart {
    ^
    @

    Googling the problem came up with lots of solutions, like running qmlviewer with -I . or/and with -P . but to no avail.

    Any hints appreciated.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      Did you build the project first? That example interacts with C++, which must be compiled first.

      More info at https://qt-project.org/doc/qt-5.1/qtqml/tutorials-extending-chapter6-plugins.html

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexandros
        wrote on last edited by
        #3

        Thanks a lot for the answer. The example in the package was slightly outdated, it seems.

        The link that you provided me with works flawlessly :)

        The only extra thing that I had to do was to install the package qtdeclarative5-qtquick2-plugin

        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