In fact in my society we work on a project to create MMI(Man Machine 
Interface) to Energetic Simulation like "power central", so we need to 
create some graphic interface with representation of valves, pumps, 
emergency button and some others.

These same element of the image can be actionned by widget with 
standards widgets like Slider, Checkbox, RadioButton and others.

The project consist to create an editor of dynamics elements 
("prototype") and dynamics images composed by some prototypes.

At start of the project i have analyzed Qt and i wanted to use 
QGraphicsView, QGraphicsScene and all QGraphicsItem, and i have discover 
QML that in fact an abstraction of QGraphicsView, that done wich we want 
to do except for widget.

So perhaps can i use the both technologies simultaneous. What do you 
think about it ?

Thanks.

Alain.

Le 18/02/2010 14:54, [email protected] a écrit :
> 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

Reply via email to