Results 1 to 2 of 2

Thread: qt quick plugin.

  1. #1
    Join Date
    Jun 2010
    Posts
    38
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default qt quick plugin.

    In this example :qt\examples\declarative\tutorials\extending\chapt er6-plugins, it extending QML,
    Qt Code:
    1. qmlRegisterType<PieChart>(uri, 1, 0, "PieChart");
    2. qmlRegisterType<PieSlice>(uri, 1, 0, "PieSlice");
    To copy to clipboard, switch view to plain text mode 
    it add two classes to QML, but where place the dll file? I had try some pathes, such as qt/imports and qt/plugins , they are all doesn't work.

    who knows? thank you every much...

  2. #2
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Re: qt quick plugin.

    Hi,
    when you write
    import Qt 4.7 or
    import myPlugin 1.0
    QtCreator goes to the "qt/imports" directory and looks for a folder named "myPlugin". You should place your plugin.dll inside the folder you created with myPlugin name.
    1. Create a folder whose name is myPlugin under the "qt/imports" directory.
    2. Give that path in the pro file with DESTDIR = ../qt/imports/myPlugin
    whenever you compile your program, it will create the dll inside that folder.
    Hope it helps

Similar Threads

  1. plugin for qt quick.
    By wookoon in forum Newbie
    Replies: 0
    Last Post: 17th March 2011, 06:31
  2. Replies: 1
    Last Post: 8th October 2010, 11:38
  3. Re: Quick help on QProcess
    By ufo-vl in forum Newbie
    Replies: 8
    Last Post: 27th July 2007, 07:19
  4. Quick help on QProcess
    By devilj in forum Newbie
    Replies: 4
    Last Post: 17th July 2007, 22:16
  5. Quick Help Needed with little App.
    By Sicko in forum Qt Programming
    Replies: 4
    Last Post: 19th December 2006, 10:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.