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

Where are Qml components?

The Qt Controls are being worked on, see for example here: http://qt-project.org/wiki/QtDesktopComponents

View Article


Problem setting visible property of a ListView to false

Visible should hide the list. If it is not the case it would be best to create a small self-contained example of this behavior and file an issue at https://bugreports.qt-project.org

View Article


How to debug transition in a QML applications

This is actually an error in the documentation. Currently this is not possible in Qt 5 with qmlscene. (In theory you could use private api to achieve it though)

View Article

Accessing Repeater model in delegate

You could try to give the Repeater an id and accessing that.

View Article

problem with adding custom qml module

Hey, I am writing a QML-application, where a self written module needs to be imported and used. If I put my module in the locations provided in the QtQuick2ApplicationViewer...

View Article


QML and C++ Integration

Hello, I have gotten communication from c++ and QML using the Q_PROPERTY macro with basic types such as QString and int, but I cannot get it to work with my own custom class that extends QObject. Here...

View Article

QML and C++ Integration

Hello. First of all, at the class declaration of Simple, i suppose you mean that the base object is QObject not Simple, right? So for your problem. With the following changes it worked for me, though i...

View Article

QML list view change item size to fit text

In wrapper Rectangle set height based on menuEntry height. You might want to center Text inside wrapper, as well set smaller width, specify spacing and etc.        ...

View Article


How to connect a property signal to a Javascript function.

I’m new to Qml and having some trouble connecting a javascript handler to a property’s signal. I have a C++ object with a property and signal.     class CppObject : public QObject...

View Article


How to install module in Qt creator

Hi, I have problem with importing box2D plugin I do not know where I made a mistake. Plugin I downloaded from this site https://gitorious.org/qml-box2d and I drove this manual...

View Article

How to connect a property signal to a Javascript function.

ahh, good catch, I missed that :)

View Article

QML and C++ Integration [solved]

Thank you very much Thomas. That sure did the trick. You rock!

View Article

Qml variant to custom QtObject

I have 2 different C++ objects using Q_PROPERTY and Q_INVOKABLE for a function, in my qml file I have this: include MyObject 1.0  //from c++ incluce MyInvokable 1.0 //from c++  ...

View Article


Qml variant to custom QtObject

Reading your qml, you use a variant there too. Its almost never useful to have a variant in QML, since QML is typesafe. In this case you don’t need that property in the first place, but otherwise you...

View Article

QAction shortcuts in QML

Would you have keyboard focus set to true somewhere? Or a FocusScope in your app? Likely you eat the events in your qml app, therefore the view doesn’t get them. Go to the FocusScope qml widget and...

View Article


QAction shortcuts in QML

It seems QAction is something specific for QtWidgets. A solution is to override void keyPressEvent(QKeyEvent* event);

View Article

hardware accelerated realtime graph/chart

You can alsouse the new Canvas item which essentially gives you QPainter functionality in javascript.

View Article


problem with adding custom qml module

Hrm, sounds like a bug. Ask aalpert on the #qt-labs channel on freenode irc. You can run the application with QML_IMPORT_TRACE=1 set in your environment, to get more debugging output. Cheers, Chris.

View Article

How to connect a property signal to a Javascript function.

Note that the “valueChanged” function is a function property of “obj” and not of the “value” property of “obj”. So, instead of: obj.value.valueChanged.connect(objEventHandler) you should use...

View Article

Large QML application performance:

Hi I am developping a lare area full screen application, with large touch glass area: 2HD screen wide x 5 HD screen high : 3840 × 5400 : For the moment I am using Qt5, QtQuick 1.1. The qraphic card are...

View Article
Browsing all 4972 articles
Browse latest View live