ListView contentY changes on move
When clicking an item in the ListView, it should be moved to the first implementation. I wanted to animate the opacity, but it seems not to be possible. Then I saw that the contentY of the listView...
View ArticleQQmlComponent creation fails to set proper parent
I am creating QML components from C++, and while creation succeeds, the created item remains invisible since its parent is not properly set: QQmlComponent c(engine, path + name +...
View ArticleListView contentY changes on move
Hi, Sorry, but can you elaborate the problem clearly ? When you move the item, i think it’s obvious that the y position would change. On the side note, Can you try PathView [qt-project.org] ? I think...
View ArticleClass member data are not available (empty)
Hi, i am new to qml and i don’t know why the QList is empty, when the function printNumberOfValuesQml was called from qml. See my simple example code. // main.qml import QtQuick 2.2 import...
View ArticleArray not accessible
Ohh srry, made a mistake. The line where I change the state actually says: repeater.children[i].state = "inactive" But this results in an error: TypeError: Type error I’ve also tried...
View ArticleClass member data are not available (empty)
Hi, you defined two MyClass instances in your code. Once in your main.cpp and once in your main.qml. You called init only on your instance in your main.cpp. Hope this helps
View ArticleHow to run a C++ function when QML button is clicked? Using...
Have you rebuild the whole project after you added Q_OBJECT ? Oh sorry, I feel like an idiot now. I’ve rebuilt the whole project, and it runs perfectly. But when I click on the button I get this in the...
View Article[fixed] OpenGL under QML text is distorted
Hi, I am working on a Qt OpenGL engine under QML but I have some problems when placing text inside QML over the OpenGL view. The paint function is triggered by the beforeRendering() function of the...
View Article[fixed] OpenGL under QML text is distorted
Found it: The paint method took to long. I did more than painting in it.
View ArticleTableView remove ScrollBar
Is there any option where one can disable the ScrollBar from being visualized?
View ArticleTableView remove ScrollBar
Hi, AFAIK, you can access the private member TableView { __verticalScrollBar.visible: false }
View ArticleListView contentY changes on move
Ok. Not sure then. I’d suggest you to ask this at the Qt developer mailing list.
View ArticleClass member data are not available (empty)
you use setContextProperty you need to refer to the object by the name you have given it, namely “myModel”. Again making another qml instance of MyClass won’t do you any good.
View ArticleHow to run a C++ function when QML button is clicked? Using...
It works for me. main.cpp int main(int argc, char *argv[]) { QApplication app(argc, argv); QQmlApplicationEngine engine; ...
View ArticleHow to add a check box or line edit elements in a combo box in Qt Quick
I want to add several elements (such as, checkbox, line edit) in a combo box, and when i select any option, by pressing a show_dialog button i should be able to see a checkbox or a line edit in the...
View ArticleCreate QML or JavaScript Object in C++
Hi, As I see in Interacting with QML Objects from C++ [qt-project.org], the way to Create QML Object in C++ is like this: // Using QQmlComponent QQmlEngine engine;...
View ArticleClass member data are not available (empty)
You are looking for exposing the model written in C++ and exposing to QML, you can refer the examples give in your installation in following directory. examples\declarative\modelviews\stringlistmodel...
View ArticleQQmlComponent creation fails to set proper parent
Hi, AFAIK, you should use setParentItem [qt-project.org] to set parent for the QQuickItem that you create and not to the component. Also Component.onCompleted is called as soon as you create the...
View ArticleNoob Question: What's up with QtQuick.Window ?
Hi… coming from the C++ side of Qt, I’m now looking at QtQuick, and going through the examples. One Caveat I’ve found is that the template in QtCreator imports QtQuick.Window, and apparently the root...
View ArticleNoob Question: What's up with QtQuick.Window ?
Thanks for the reply. I assume QQuickView is used you make a “QT Quick UI” as opposed to a “QT Quick Application” in creator. I can probably live either way for now. :)
View Article