Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing all 4972 articles
Browse latest View live

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 Article



QQmlComponent 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 Article

ListView 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 Article

Class 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 Article

Array 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 Article


Class 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 Article

How 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 Article


TableView remove ScrollBar

Is there any option where one can disable the ScrollBar from being visualized?

View Article

TableView remove ScrollBar

Hi, AFAIK, you can access the private member TableView {    __verticalScrollBar.visible: false }

View Article

ListView contentY changes on move

Ok. Not sure then. I’d suggest you to ask this at the Qt developer mailing list.

View Article

Class 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 Article


How 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 Article

How 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 Article


Create 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 Article

Class 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 Article


QQmlComponent 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 Article

Noob 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 Article

Noob 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
Browsing all 4972 articles
Browse latest View live




Latest Images