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

How to convert string to double ?

I’m new to qml.. Can anyone tell me how to convert String to double or long long value ? I mean I want a double or long long result. I’m writing an application for a large calculation… And want to add...

View Article


How to convert string to double ?

I don’t know if you can do that, if you stay in pure javaScript you can only use float precision I guess: parseFloat("12,345,678.976548".replace(",",...

View Article


handling States from another qml file

HI guys & girls, How do I save a state of a Checkbox item so that it is accessible from another qml file. Example: “submenu.qml” has a CheckBox item. how to get CheckBox properties from...

View Article

QML ScreenSaver element in Qt 5.x?

This user used QMagnetometer (which is supported on Android and iOS) to create a custom compass: http://qt-project.org/forums/viewthread/40353 As for your other issues, I recommend starting new threads...

View Article

How to unpack all the data's in C++ of type QVariant that send from QML

I am sending QVariant from QML to C++. The QVarient having the following types. QVariant(QVariantList, (QVariant(QObject*, Marker_QMLTYPE_3(0×2e5c33b8) ) ) ) I want to access all the properties of...

View Article


How to unpack all the data's in C++ of type QVariant that send from QML

Try this: QVariant qmlData; QVariantList temp = qmldata.value<QVariantList>();   foreach (QVariant var, temp) {   QObject *myObject = var.value<QObject...

View Article

Bad Resolution of SVG's on iOS and Mac Retina Displays

By default, Images with SVG sources look bad on Mac and iOS Retina/HiDpi displays For example, checkout the poor resolution of this SVG on an iPhone 4s (or newer) or Mac Retina display Image {...

View Article

Image mask particle system differs

Thank you for helping me look at this problem. I am imitating example to make particle masked. First let me show you some screen shot: This is desired: This is problematic, the particles are not...

View Article


QT3D: Problem with picking mouse events from Item3D objects

I have noticed that there is probably a bug in QT3D QtQuick Viewport element. My simple application consists of Viewport and some Item3D elements (with 3ds meshes): import QtQuick 2.2 import Qt3D 2.0...

View Article


how to pack the c++ data into QVariant Object list

In C++ I am having list of int,QStringList value for the object. I want to pack it in the QVariant Object list and access into the QML. I tried to access the qml i am not able to get the object...

View Article

Animate Image on changing source property

I have an Image component with a init value on “source” property:  Item {                 anchors.centerIn: parent;...

View Article

handling States from another qml file

You can use a signal which sends the properties to your “menu.qml”. Just define a signal in “menu.qml” and execute this signal in “submenu.qml”. In “menu.qml” you can define an “onYouSignal” function...

View Article

How to convert string to double ?

Ah sorry I misunderstood you, I thought you wanted to convert a string to a number, but if you want to add comma you want to convert a number to a string (numbers can’t have commas of course, so you...

View Article


How to save and read from .ini file using QSetting from the custom path

In Qt I am using QSettings class for savine and retrieving the application details. I saved the file as .ini format using QSettings. Also I saved the file in C://Program Files. But the file is created...

View Article

how to pack the c++ data into QVariant Object list

I am having the the list of items like QStringList, QString,int in c++ class. How I can pack all the data into object list and send to qml. I tried but i am not getting the values in QML. How i can...

View Article


Animate Image on changing source property

Well, you can make a tiled sprite and use Sprite QML type to do animation. it’s easy and quick.

View Article

How to Using tableView model in C++ code with UI in QML

Hi everybody; Who can help me to solved my problem :) I want show data from database into qml Tableview How can i create model and show my database data into my qml ui. main file :...

View Article


Enums not working or be referenced correctly in QML

Background: I am trying to make a remote control for a car controlled with Raspberry Pi. I’m using REST API from WebIOPI to do it.More info [nayarweb.com] (optional) Problem: I have a class...

View Article

Enums not working or be referenced correctly in QML

I think this link has the answer [stackoverflow.com]

View Article

How to save and read from .ini file using QSetting from the custom path

Hi, Even with elevated rights you can’t do everything. Ini files don’t belong to the same folder as your application especially since you will be writing to it. You have a set of paths you can use (and...

View Article
Browsing all 4972 articles
Browse latest View live