Results 1 to 5 of 5

Thread: what is the difference between makin a plugin into a QML Component vs property & item

  1. #1
    Join Date
    Aug 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Maemo/MeeGo

    Default what is the difference between makin a plugin into a QML Component vs property & item

    e.g. between
    1. QML Component:
    PluginModel
    {
    ID: PluginClassHandle
    }

    2. Property declared inside a another QML component:
    Menu {
    property PluginModel Item: PluginModel { }
    }

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: what is the difference between makin a plugin into a QML Component vs property &

    Think about these two cases like global variable (case 1) and incapsulated member (case 2).
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Aug 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Maemo/MeeGo

    Default Re: what is the difference between makin a plugin into a QML Component vs property &

    So that property (case 2) will only exist while inside that Menu Item or some higher parent member?

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: what is the difference between makin a plugin into a QML Component vs property &

    It's a child of Menu object.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. #5
    Join Date
    Aug 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Maemo/MeeGo

    Default Re: what is the difference between makin a plugin into a QML Component vs property &

    Thanks a lot.
    BTW, i love using TrailHead. There is a little bug on the N9, in fullscreen mode if you go into view a picture while tracking a trail, you cant exit out of it.

Similar Threads

  1. QtQuick can not display the component item
    By stereoMatching in forum Newbie
    Replies: 1
    Last Post: 8th June 2012, 21:45
  2. Set property for custom plugin widget
    By koilin in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2012, 10:12
  3. Static plugin: setting/reading a property
    By eg3gg in forum Qt Programming
    Replies: 2
    Last Post: 5th September 2010, 17:12
  4. Designer plugin widget property not recognized
    By janus in forum Qt Programming
    Replies: 7
    Last Post: 14th April 2009, 21:26
  5. custom plugin designer property with out a variable?
    By high_flyer in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2006, 19:11

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.