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

Noob question about Properties and Scopes

Hm, that is a good question. I don’t think you should depend upon it, as it is possible to remove an item from the middle of the list – the index might jump then. But I am not sure. If you have a use...

View Article


Exposing custom type class instance to QML code

Thank you very much for the test code but it didn’t seem to do the trick for me. Anyway, I will try to compile the sample code once in a while. Currently I have a problem with the type recognition of...

View Article


Project ERROR: Unknown module(s) in QT: quick

Hi, It’s not exactly like that, you cross-compile Qt with the linaro tool chain , then you use that version to compile your application for your target and copy it on. In between you can develop it...

View Article

Order in which loading completes with GridView/ListView when using a Loader...

I am using Qt 5.1.0 for a “Qt Quick Application” project (with QML and C++). I was trying to create a grid of images on my embedded device. I used a loader in the delegate for a smoother user...

View Article

QML Quick2 WebView and zoom in/out

Any solution for that? been looking for hours. I have: import QtQuick 2.0 import QtWebKit 3.0   Rectangle {     width: 300; height: 300    Text {  ...

View Article


writing function for onClicked signal of nested button

Thank you to you both, that was exactly what I needed. I tried using a signal but clearly didn’t do it correctly.

View Article

writing function for onClicked signal of nested button

Also note that signals can have arguments inside them which can potentially be very useful, e.g. for passing strings or numbers etc.

View Article

is QML Guaranteed to be Processed serially?

I have this script: import QtQuick 1.0 import FileIO 1.0 import RectData 1.0   Rectangle {     id: main     width: 360     height: 360...

View Article


propagateComposedEvents to ComboBox not work

I know that documentation mentions propagateComposedEvents events works for MouseArea. But What If I want it to work for combo box or another Qt Quick Component? Is there any work around? Following...

View Article


Is it possible to set the root object of an QQuickView?

In C++ I created a QQuickItem and want to set this as the root object of a QQuickView. The following is a simplified part of my code: void MyClass::showItem(QQuickItem *item) {    ...

View Article

is QML Guaranteed to be Processed serially?

QML is read first, then it’s being processed in an event loop. You can’t depend on that being sequential. But if your model is done properly, the engine will detect that “rectangles” has hanged and...

View Article

Project ERROR: Unknown module(s) in QT: quick

Hi, I’m trying to build QtWebkit for Qt 5.2. I get the error in the title of this post. My question is which libraries and headers are being looked for in the build process. Where are they supposed to...

View Article

[solved] Image with rounded corner

Hello guy, I’m new to QML and I would like to add border to my image. My border also have to be a circle with my image inside of it. I’ve tried some code that I found in other topics but nothing fit...

View Article


Pass QObject * (and all its signals) to qml through function (NOT via...

I am trying to implement progress bars like ones in QtCreator (when building or indexing or searching). So, I have QFutureWatcher<something> *Watcher on C++ side and I want to expose all...

View Article

Pass QObject * (and all its signals) to qml through function (NOT via...

Seems, I guessed one (but not very beautiful) decision. I can connect signal of Watcher to C++-side slots, in which I will ::invokeMethod() of qml component… So, is there “more native” decision?

View Article


[solved] Image with rounded corner

That’s great :) You can mark the post as solved. Just edit the title and prepend [solved]

View Article

QProcess not running command correctly & freezing gui

Hey, I know the basics of C++ but am a total QT noob so please treat me accordingly. This is the code in question: void gamemode::on_gamemodeoff_clicked() {     QProcess startagain;...

View Article


QProcess not running command correctly & freezing gui

Hi, Try ; instead of &. Because I think the second program won’t launch until first completes. I’m not sure though.

View Article

QProcess not running command correctly & freezing gui

Hi, Another way would be this QProcess startagain; QString startCommand; startCommand = "easystroke"; startagain.startDetached(startCommand); startCommand =...

View Article

[SOLVED] Pass QObject * (and all its signals) to qml through function (NOT...

Thanks, seems it is ok

View Article
Browsing all 4972 articles
Browse latest View live