[Qt-qml] [Qt5-feedback] QSG* classes in QtDeclarative will be renamed [was: Re: QtQuick2 considerations]

Kent Hansen kent.hansen at nokia.com
Mon Oct 24 10:34:55 CEST 2011


Hi,

Den 21. okt. 2011 13:53, skrev ext Michael Hasselmann:
> On Fri, 2011-10-21 at 13:18 +0200, Kent Hansen wrote:
>>> QSGItem -->   QQuickItem
>>> QSGView -->   QQuickView
>>> QSGCanvas -->   QQuickCanvas
>>> QSGPaintedItem -->   QQuickPaintedItem
>>>
>>> Header files will be renamed accordingly (e.g. qsgitem.h -->   qquickitem.h).
> Thanks, but don't you think that the QQ prefix looks rather silly now?
>
> You basically say "Qt Qt User Interface Creation Kit Item", no?

No, I've never uttered those words. The technology is called Qt Quick 
(http://qt.nokia.com/qtquick). It may be redundant/silly, but at least 
it should be consistently silly across our APIs.

> I'd argue that the Q of Quick is already the regular prefix.


QuickItem isn't consistent with Qt class naming. To me it reads like "Qt 
uick Item". We have QQueue (http://doc.trolltech.com/4.7/qqueue.html), 
not Queue. "Quick" and "Queue" are plain English words, we can't have Qt 
hijacking them.

Unless you were suggesting it should be called QItem, which I think is a 
tad too generic.

Historical trivia: A few years back, the C++ QML classes were all called 
Qml*, before they were renamed to QDeclarative*.

Regards,
Kent


More information about the Qt-qml mailing list