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?
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?
Why not use a proxy widget to embed QTextEdit in your QML?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
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.
By embedding widgets in to QML your application will not stop being a QML application.i need to use a qml widget , because the application is a qml application.
I don't think you understand what a proxy widget is.
http://doc.trolltech.com/4.7/qgraphicsproxywidget.html
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
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....
Bookmarks