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. Use of TextBalloon example (how?)
Forum Updated to NodeBB v4.3 + New Features

Use of TextBalloon example (how?)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
textballoonexampleplugin
1 Posts 1 Posters 793 Views
  • 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.
  • M Offline
    M Offline
    MrQnTi
    wrote on 3 Apr 2017, 11:15 last edited by
    #1

    Hi,

    How to use the example TextBalloon http://doc.qt.io/qt-5/qtquick-customitems-painteditem-example.html in my own app?

    What i did so far:

    • copied the painteditem project folder (Qt\Examples\Qt-5.8\quick\customitems\painteditem) to my projects folder (D:\projects\painteditem)
    • changed DESTDIR in .qro to ../Plugins/TextBalloon
      results in D:\projects\Plugins\TextBalloon
    • created a new Qt Quick project (D:\projects\myapp)
    • copied the QML (textballoons.qml) that uses the TextBalloon class to my application QML
    • added engine.addImportPath(app.applicationDirPath() + "/../../Plugins"); to my main (before any view is loaded)
      results in D:\projects\Plugins as app is inside D:\projects\buildconfig\debug\

    I keep getting qrc:/main.qml:4 "TextBalloon": no such directory
    What am I doing wrong?

    1 Reply Last reply
    0

    1/1

    3 Apr 2017, 11:15

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved