Ah, I just had a look and my info came from that Bauhaus enabled Qt Creator
that was released a while ago as a tech preview. Seems with "import Bauhaus
1.0" you can use some standard Widgets. ( This will of course only work in
the Creator, not your own projects )

So you could have a look at its source code, how they did it and use it in
your own.

Cheers,
Marcus

P.S.: Henrik is right of course, that should only be used as a band-aid


On [DATE], "[email protected]" <[ADDRESS]> wrote:

> 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
>>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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


_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to