PDA

View Full Version : Qml TextEdit



goli
27th April 2011, 14:41
i wan't to create a TextEdit in qml that can be wrapped using a slider.
i can't figure out how to connect the slider(that i create) to the TextEdit, and make the text move according to the slider(like in qt edit text box...).

any idea?

high_flyer
28th April 2011, 13:45
Why not use a proxy widget to embed QTextEdit in your QML?

goli
28th April 2011, 14:00
i need to use a qml widget , because the application is a qml application. i don't wan't to use the qt widgets here...
i tried something but it i's not right.:confused:

high_flyer
28th April 2011, 14:18
i need to use a qml widget , because the application is a qml application.
By embedding widgets in to QML your application will not stop being a QML application.
I don't think you understand what a proxy widget is.
http://doc.trolltech.com/4.7/qgraphicsproxywidget.html

goli
28th April 2011, 14:37
i know how to use this proxy in qt class( QDeclarativeItem ), but i don't wan't to use this that way.
i added a slider that move and grow up accordig to the TextEdit, and i just need to figure out how to connect the textEdit to the slider - that the text will move with the slider....