ComboBox with many items (Countries)
Please see setMaxVisibleItems [qt-project.org] and setEditable [qt-project.org] methods
View ArticleDeclaring dependencies in QML plugins
I am aware of the import statement from QML. However, my plugin has no QML component; it is C++ only. So what I’m asking is how to achieve the effect of “import B” in C++. Burk.
View ArticleQStringListModel doesn't show on QML ListView
Hi, I’m pretty new to QML. I have definded QStringListModel in CPP and exposed to QML. My qml is not able to show list of strings that my model is set to. Please find my code as follows: int main(int...
View ArticleIs it possible to achieve some kind of GLOW TEXT in QML?
yes, I found this [doc-snapshot.qt-project.org] for Rectangle glow. But I dnt know why it is making the corners rounded with out my consent. Guess it is due to the default cornerRadius property I dnt...
View ArticleDestroy qml object
If you’re talking about their visual appearance, why not set visible to false? That should stop them from taking up any space in the visual layout. But that’s a separate issue to the object lifetimes....
View ArticleQStringListModel doesn't show on QML ListView
I solved the problem by using role name as Qt::display in my qml file. import QtQuick 2.0 //![0] ...
View ArticleMeggo harmattan several problems
Ok so, I have seen my problem is under linux and not under windows…
View ArticleXmlListModel
Seems ok, and I got it to work with adding visible = true for the ApplicationWindow and I also made the TableView cover the whole window with anchors.fill: parent. import QtQuick 2.1 import...
View ArticleHow to use a map (like google maps) with Qt Quick?
I want to display a map with my Qt Quick 2.1 application, but I cant find a good example on how to do that. I dont develop for a nokia device, but for android. So can somebody post a working example of...
View ArticleHow to use a map (like google maps) with Qt Quick?
Ignore Previous, try this ““example”“:http://qt-project.org/doc/qt-4.8/declarative-modelviews-webview-googlemaps.html EDIT : Broken link
View ArticlePopulating qml combobox
How do I populate combobox? I have QStringList model in c++. my main.cpp QGuiApplication app(argc, argv); QQmlEngine engine; ...
View Articleqt quick combobox signals
What are the signals that come with qml control combobox? I cannot find any list of signals that it has. I need signal “CurrentTextChanged”. Qt creator’s autocomplete shows that there exists...
View ArticleHow to use a map (like google maps) with Qt Quick?
If you get it to work, please report back how you did it :)
View Articleqt quick combobox signals
The reason there are no signals in the docs is that they are implicit. Every property you see in the control has an implicit onChanged signal. I don’t get it. Maybe I don’t get how qml works...
View ArticleCannot call c++ function from qml
QGuiApplication app(argc, argv); QQmlEngine engine; QQmlContext* maincontext = new QQmlContext(engine.rootContext());...
View ArticleCannot call c++ function from qml
Wow, this is really strange way of instantiating QML engine and view. Why are you doing this in such a complicated manner?Is your MainWindowMC a QObject? Have you added the Q_OBJECT macro? MainWindowMC...
View Articleqt quick combobox signals
No it certainly has nothing to do with widgets. All properties that you declare in QML will emit signals when they change. Internally those qml properties are implemented as regular QObject-properties...
View ArticleCannot call c++ function from qml
Well for me the easy way is this, but everybody has their own: // from memory, sorry for any errors QQuickView *view = new QQuickView(); MainWindowMC *mainMC = new MainWindowMC();...
View ArticleQQuickWindow not shown
Hello, I am testing stuff but I just can’t be able to understand why the following code does not work: int main(int argc, char *argv[]) { QGuiApplication app(argc, argv);...
View Article