[Qt-qml] Dummy modules
warwick.allison at nokia.com
warwick.allison at nokia.com
Fri Jul 23 00:46:10 CEST 2010
> When I run my project from qmlviewer though, there's no way (I think)
> to display that same QCalendarWidget,
Yes, you'd have to make it a plugin instead of declaring it in your app.
> ... So I've defined a Calendar module inside a "Mockups"
> directory, which just displays the image of a calendar and contain
> canned values for properties like the date etc... (this is basically my
> UI mockup prototype).
Good idea!
You can achieve this even more smoothly by putting a qmldir file in that Mockups directory:
Calendar MockupCalendar.qml
and running qmlviewer with a -I ../Mockups option.
(and for context properties that only your app defines, you can use the dummydata directory)
--
Warwick
More information about the Qt-qml
mailing list