How can I put a slider in my QML code? I do not see any options for buttons, sliders etc.. at all in the design part and if I try with code etc..
slider{
...
}
It does not compile. Which headers do I need to include?
Thanks.
Printable View
How can I put a slider in my QML code? I do not see any options for buttons, sliders etc.. at all in the design part and if I try with code etc..
slider{
...
}
It does not compile. Which headers do I need to include?
Thanks.
It is there : [url]http://doc.qt.digia.com/qt-components-symbian/qml-slider.html[/url]
Yes, I have seen that but the trouble is that it does not work.
The error message is:
Slider is not a type
Slider {
try including this, if not already there:
import QtQuick 1.0 or import QtQuick 1.1
I have got both of those. What about the .pro file? Do I need anything special there?
[QUOTE=mark090480;908041]I have got both of those. What about the .pro file? Do I need anything special there?[/QUOTE]
Add the following
import QtQuick 1.0
import com.nokia.symbian 1.0
import Qt.labs.components 1.0
I think it is the part of symbian compoent. You can also check the following [URL="http://doc.qt.digia.com/qt-components-symbian/examples-symbian-gallery.html"]example[/URL] which has many component commonly used in QML.
Thank you that worked.