[Development] Qt.vector3d() and friends

Koehne Kai Kai.Koehne at digia.com
Wed Jan 8 14:47:21 CET 2014


> -----Original Message-----
> From: development-bounces+kai.koehne=digia.com at qt-project.org
> [mailto:development-bounces+kai.koehne=digia.com at qt-project.org] On
> Behalf Of Sebastian Lehmann
> Sent: Wednesday, January 08, 2014 2:31 PM
> To: development at qt-project.org
> Subject: Re: [Development] Qt.vector3d() and friends
> 
> Hi,
> 
> I'd find it "natural" if there was something like a QtCore plugin.
> Then, QtQuick and Qt3D (and other stuff) could depend on it; i.e.
> something analogous to the existing Qt modules dependency, but in the QML
> world.
> 
> I already encountered situations in which I wanted to use QtQuick stuff
> without the QtQuick *visual* items: Timer, Component, NumberAnimation
> etc. Why not separating QtQuick in non-visual and visual parts?
>
> Of course, when importing QtQuick x.y, this should automatically resolve the
> dependency and also import QtCore x.y.

That's actually how it is. You can just write 'import QtQml 2.2' for some basic types.

http://qt-project.org/doc/qt-5/qtqml-qmlmodule.html

I guess vector3d isn't in QtQml but QtQuick to avoid a Qt5Qml->Qt5Gui dependency ...

Regards

Kai



More information about the Development mailing list