Re: [Development] Another method of registering QML types

2012-11-09 Thread Alan Alpert
: Sent: Thursday, November 8, 2012 12:57 PM Subject: [Development] Another method of registering QML types Currently, there is no way to register QML files as types from C++. This is the exact same functionality that qmldir provides, but I think there are situations where you'll want to do

[Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
Currently, there is no way to register QML files as types from C++. This is the exact same functionality that qmldir provides, but I think there are situations where you'll want to do this progamatically instead of with a qmldir file. There is a very specific example I have in mind: Platform

Re: [Development] Another method of registering QML types

2012-11-08 Thread Olivier Goffart
On Thursday 08 November 2012 09:57:05 Alan Alpert wrote: Currently, there is no way to register QML files as types from C++. This is the exact same functionality that qmldir provides, but I think there are situations where you'll want to do this progamatically instead of with a qmldir file.

Re: [Development] Another method of registering QML types

2012-11-08 Thread Olivier Goffart
On Thursday 08 November 2012 19:23:37 Shawn Rutledge wrote: On Thu, Nov 08, 2012 at 07:14:52PM +0100, Olivier Goffart wrote: On Thursday 08 November 2012 09:57:05 Alan Alpert wrote: Currently, there is no way to register QML files as types from C++. This is the exact same functionality

Re: [Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
On Thu, Nov 8, 2012 at 10:14 AM, Olivier Goffart oliv...@woboq.com wrote: On Thursday 08 November 2012 09:57:05 Alan Alpert wrote: Currently, there is no way to register QML files as types from C++. This is the exact same functionality that qmldir provides, but I think there are situations

Re: [Development] Another method of registering QML types

2012-11-08 Thread Oswald Buddenhagen
On Thu, Nov 08, 2012 at 09:57:05AM -0800, Alan Alpert wrote: Any comments on this suggested addition to the QtDeclarative public API? sounds like an utter nightmare for plugins.qmltypes files. ___ Development mailing list Development@qt-project.org

Re: [Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
On Thu, Nov 8, 2012 at 11:14 AM, Oswald Buddenhagen oswald.buddenha...@digia.com wrote: On Thu, Nov 08, 2012 at 09:57:05AM -0800, Alan Alpert wrote: Any comments on this suggested addition to the QtDeclarative public API? sounds like an utter nightmare for plugins.qmltypes files. I think it's

Re: [Development] Another method of registering QML types

2012-11-08 Thread BRM
From: Alan Alpert 4163654...@gmail.com To: development development@qt-project.org Cc: Sent: Thursday, November 8, 2012 12:57 PM Subject: [Development] Another method of registering QML types Currently, there is no way to register QML files as types from C++. This is the exact same

Re: [Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
On Thu, Nov 8, 2012 at 12:49 PM, BRM bm_witn...@yahoo.com wrote: From: Alan Alpert 4163654...@gmail.com To: development development@qt-project.org Cc: Sent: Thursday, November 8, 2012 12:57 PM Subject: [Development] Another method of registering QML types Currently, there is no way

Re: [Development] Another method of registering QML types

2012-11-08 Thread Richard Moore
On 8 November 2012 21:17, Alan Alpert 4163654...@gmail.com wrote: On Thu, Nov 8, 2012 at 12:49 PM, BRM bm_witn...@yahoo.com wrote: From: Alan Alpert 4163654...@gmail.com If you have a http://remote/Image.qml with code like Image { source: graphic.png } the png will be fetched transparently.

Re: [Development] Another method of registering QML types

2012-11-08 Thread Thiago Macieira
On quinta-feira, 8 de novembro de 2012 11.02.23, Alan Alpert wrote: I know commits go to Qt5 first, but with the issue of QtQuick there's different implementations for QtQuick 1 and QtQuick 2. I don't think it's a good idea for QtQuick 1 (Qt 5) to gain new features that are withheld from

Re: [Development] Another method of registering QML types

2012-11-08 Thread Thiago Macieira
On quinta-feira, 8 de novembro de 2012 09.57.05, Alan Alpert wrote: qmlRegisterType(const char* url, const char *uri, int versionMajor, int versionMinor, const char *qmlName). [...] This would allow for a platform component import which looks like this: if(platform==desktoplinux)

Re: [Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
On Thu, Nov 8, 2012 at 2:16 PM, Thiago Macieira thiago.macie...@intel.com wrote: On quinta-feira, 8 de novembro de 2012 11.02.23, Alan Alpert wrote: I know commits go to Qt5 first, but with the issue of QtQuick there's different implementations for QtQuick 1 and QtQuick 2. I don't think it's a

Re: [Development] Another method of registering QML types

2012-11-08 Thread Thiago Macieira
On quinta-feira, 8 de novembro de 2012 15.36.23, Alan Alpert wrote: But I'm not sure what the usecase is for extending QtQuick1 in Qt5 only? Isn't the primary point of QtQuick 1 in Qt5 to provide a smooth migration path? QtQuick 1 in Qt5 is Done (unless this has changed), so if a feature is

Re: [Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
On Thu, Nov 8, 2012 at 2:19 PM, Thiago Macieira thiago.macie...@intel.com wrote: On quinta-feira, 8 de novembro de 2012 09.57.05, Alan Alpert wrote: qmlRegisterType(const char* url, const char *uri, int versionMajor, int versionMinor, const char *qmlName). [...] This would allow for a

Re: [Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
On Thu, Nov 8, 2012 at 3:43 PM, Thiago Macieira thiago.macie...@intel.com wrote: On quinta-feira, 8 de novembro de 2012 15.36.23, Alan Alpert wrote: But I'm not sure what the usecase is for extending QtQuick1 in Qt5 only? Isn't the primary point of QtQuick 1 in Qt5 to provide a smooth

Re: [Development] Another method of registering QML types

2012-11-08 Thread Alan Alpert
On Thu, Nov 8, 2012 at 2:15 PM, Richard Moore r...@kde.org wrote: On 8 November 2012 21:17, Alan Alpert 4163654...@gmail.com wrote: On Thu, Nov 8, 2012 at 12:49 PM, BRM bm_witn...@yahoo.com wrote: From: Alan Alpert 4163654...@gmail.com If you have a http://remote/Image.qml with code like Image

Re: [Development] Another method of registering QML types

2012-11-08 Thread BRM
] Another method of registering QML types Currently, there is no way to register QML files as types from C++. This is the exact same functionality that qmldir provides, but I think there are situations where you'll want to do this progamatically instead of with a qmldir file