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

xmlhttprequest: open with username and password

Hi! I have the following code: var request = new XMLHttpRequest(); request.open("GET", "https://domain:port/api.php", true, "user",...

View Article



QML Model/View: single view, single model and dynamic data with different roles

I want to have single view object, single model object and one delegate (that not really matter single delegate with conditions or few specific delegates, both ways not works) object to display...

View Article

Defining own QML type - can i define method ?

Hi, i was wondering about how i can define own C++ methods for QML component. class TimeModel : public QObject {     Q_OBJECT     Q_PROPERTY(int hour READ hour...

View Article

Defining own QML type - can i define method ?

No. Either one will work.

View Article

How to reset QQuickView and his QML file into initial state?

Looks. Here is the simplest code: https://www.dropbox.com/s/ctdcgrk0eqgq3a3/webview_test.tar.gz [dropbox.com] When you start this app you will see white window. Click on window and you will see browser...

View Article


Large virtual canvas

Hello, everybody. I try to make a view for a long-time signal. For this task i use two components: Canvas for plot and Flickable for navigation. At this way i create a large virtual canvas, canvas...

View Article

Ordering Property and Anchor changes

Is it possible to specify the order that property and anchor changes occur? In the following, I find that the AnchorAnimation runs first and then the PropertyChanges occurs. I’d like the reverse to...

View Article

QML Model/View: single view, single model and dynamic data with different roles

it’s complaining about this:     if (mode == "numbers")      number It’s interpreting this as javascript. The word “number” by itself...

View Article


[SOLVED] IntValidator does not check range correctly after assignment of...

Hello, IntValidator behaves strangely when I assign the limits through a delegate : The value from the model data appears, and I can edit that, but the range is not checked : – I can enter...

View Article


Drawing irregular shapes

Hi everyone, Facing kind of an issue with QML at the moment. I would like to be able to draw a colored fragmented disk. The idea is that the number of fragment can be changed from one execution to an...

View Article

[SOLVED] Defining own QML type - can i define method ?

Ok, thanks. That worked.

View Article

Way to filter/search ListView contents

I looking for an elegant way to filter ListView contents by text in TextInput (as in Android contacts). My current suggestions: 1) Changing visible property of delegate. That should have good...

View Article

[SOLVED] IntValidator does not check range correctly after assignment of...

Solved, the above code was OK ! My test model data was wrong : It had minimum and maximum swapped (min =100, max = -100). Doh! This had the effect that I could edit the existing value (that was out of...

View Article


How to create a binding from C++ to a QML property?

I have a component in an external QML file. The component is dynamically added like this:     QUrl url = QUrl (QStringLiteral ("qrc:///MyPage.qml"));  ...

View Article

Model/View: using single view and single model with several sets of data

I think it’s reading it as javascript not as part of the delegate. I think you might want to change the role used by the delegate by doing something like: styleData.role = “number” This seems to not be...

View Article


How to create a binding from C++ to a QML property?

If i’m not mistaken, you need to process signal heightChanged() at main thread – this signal emits when property is changed. At this slot you can request height and set to another component.

View Article

Way to filter/search ListView contents

Yeah, QSortFilterProxyModel exactly for that task, but currently i sticked to QML ListModel, don’t know maybe its possible to connect QSortFilterProxyModel to ListModel. Maybe someone have suggestions...

View Article


Typo in attached property scoping example?

On the “Scope and Naming Resolution” page (http://qt-project.org/doc/qt-5/qtqml-documents-scope.html) there’s an example using “PathView.scale” that has me confused. Shouldn’t the “id: root’ be on the...

View Article

How to queue the invocation of a slot instead of calling directly ?

Not directly. There was a WIP patch to add Qt.later() and Qt.after() functions to the Qt global object, to allow this use-case, but it couldn’t handle the case where the context got deleted out from...

View Article

QtQuick very slow on linux

Hi, Qt and QtQuick are great but I have a big problem with it : when I start an QtQuick exemple with Qtcreator (for exemple the RSS one) it’s very very slow on a intel core duo 2 with intel integrated...

View Article
Browsing all 4972 articles
Browse latest View live




Latest Images