-
Hi this is mahesh and I am new to Qml . and can you please explain how to install Qt Quick controls in Qt 5.2.
thank u
-
Hi,
It should have been installed by default when you install through the installer.
But to use it you need to choose Qt Quick Application as your project and then import it in your QML files as,
@
import QtQuick.Controls 1.1
@See "this":http://qt-project.org/doc/qt-5/qtquickcontrols-overview.html for more details.
-
Thanks for reply
I am trying to use it in QtWidget Application .
How it will work with Qt Widget Application?
-
How to import Qml File(which is having Qt Quick controls) into Qt Widget application?
-
I would suggest you to read "qtqml-cppintegration":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-topic.html and "interactqmlfromcpp":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html
-
To implement Combobox Check "this":http://qt-project.org/doc/qt-5/qml-qtquick-controls-combobox.html#details
However here's a simple example,
@
import QtQuick 2.0
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1Rectangle {
width: 360
height: 360ComboBox { model: ["Paris", "Oslo", "New York"] }
}
@ -
Hi maheshbabu,
First of all, welcome to devnet,
Could you please start new forum topics with a clear title for every question you have? This way it is easier for others to find the answers to the same questions you have.
I will split this one for you now. This thread will be closed and you can continue with the other :
"link":http://qt-project.org/forums/viewthread/40081/