No,
QML doesn't have any widgets. It has a set of lower-level elements that allow
you to build your UI. You'll find these elements in
http://qt.nokia.com/doc/qml-snapshot/qmlelements.html.
I think you'll find that building the UI in QML is extremely simple - assuming
it's a UI that fits well with a canvas-based architecture and focuses mainly on
touch interaction.
But, if it's a UI for traditional desktop, with composed controls such as
QComboBox and with more advanced mouse/keyboard input handling, MDI etc you
should probably build it with QWidget's. Of course - you could have part of
your UI done with traditional controls and part of it with a QML view. But
these are difficult questions to answer without knowing the problem you're
trying to solve.
Exposing traditional widgets in QML seems like a cumbersome approach, unless
you have a very good reason for doing so.
Cheers,
Henrik
On 18. feb. 2010, at 14.16, ext Alain FLORET wrote:
> Ok, i will try it...
>
> Thanks.
>
> Alain.
>
> Le 18/02/2010 14:00, Marcus Tillmanns a écrit :
>> I think you can just do:
>>
>> -----
>>
>> Import Qt 4.6
>>
>> QComboBox {
>> ...
>> }
>>
>> ------
>>
>> Cheers,
>> Marcus
>>
>>
>> On [DATE], "Alain FLORET"<[ADDRESS]> wrote:
>>
>>
>>> Hello,
>>>
>>> I need to use Widget in QML.
>>> QML be an abstraction of QGraphicsView and QGraphicsView offers the
>>> possibility to add a widget in a scene, is it possible to use widget in
>>> QML ?.
>>> If it's possible how can i do this and if it isn't, have you an
>>> alternative ?
>>>
>>> Thanks.
>>>
>>> Alain.
>>> _______________________________________________
>>> Qt4-preview-feedback mailing list
>>> [email protected]
>>> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
>>>
>> Marcus Tillmanns
>> Senior Software Engineer | Advanced Instrument Research
>>
>> Avid
>> Birkenstr. 15
>> 28195 BREMEN
>> Germany
>> [email protected]<mailto:[email protected]>
>> t +49 421 43 375 99 | f +49 421 706435
>>
>> A.I.R. is Digidesign is Avid. Learn more at www.avid.com
>> <http://www.avid.com/>
>> Avid Development GmbH; Birkenstr. 15, D-28195 Bremen
>> Amtsgericht München HRB 155339, USt. ID. Nr. DE 814232828
>> Geschäftsführer: Paige Parisi, Jochen Pielage, Kenneth A. Sexton
>>
>>
>> _______________________________________________
>> Qt4-preview-feedback mailing list
>> [email protected]
>> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
>>
>>
>>
> _______________________________________________
> Qt4-preview-feedback mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback