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

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

I am not sure but you should be able to just use your QSqlQueryModel and set that as the QML TableView model!? You just need to set QSqlQueryModel as a property or have a getter from QML to c++ to use...

View Article


How to set individual combo boxes currentindex?

Thanks for your suggestion and reply!!

View Article


How to show swf file in webview!

the file’s location, where is? try it with the file path

View Article

QML Binding is inversed

I have the following QML followed from the project here [qt-project.org]     MeraCar {         id: car        ...

View Article

Enums not working or be referenced correctly in QML

Yeah. Agreed it is bad practice. But in future, Qt gonna either make the enums available to the objects too or prevent it from compiling. Right now, it can be counted as a “bug” I come from a Java,...

View Article


QtQuick2ControlsApplicationViewer connect signal to slot

Hi, QtQuick2ControlsApplication is not part of Qt. It is only a convenience class that wraps a QQmlEngine and a QQuickWindow. Its code is auto-generated in Qt Creator, that’s why there is no...

View Article

How to Color an Image

Hi, How to color an image using quick 1.1.In quick 2.0,it is done using ColorOverlay,But i want it to be done in Quick 1.1. Thanks in Advance

View Article

[Solved]Calling function from QML to C++ class to get Json string PROBLEM.

Hi, I have problem, when i try to load Json string from my “Main.qml”, but then I load Json file from another qml it’s work fine, in “Main.qml” i get an error: “ReferenceError: json is not defined” My...

View Article


[Solved]Calling function from QML to C++ class to get Json string PROBLEM.

Fail was here… QQuickView *view = new QQuickView;     view->rootContext()->setContextProperty("translation", (QObject *)&translation_obj);...

View Article


Enums not working or be referenced correctly in QML

QML ist mostly “just” JavaScript, and JS has dynamic objects. so the code is valid if you try something like this: var obj = {} // empty object console.log(obj.foo) obj.foo is valid code, it will just...

View Article

Image mask particle system differs

No any ideas?

View Article

How to Color an Image

Sorry, i don’t know of a method on how to do it with QtQuick 1.1 only, but you might check out ShaderEffectItem [qt-project.org] . Maybe this could help you to solve your problem. Otherwise you can...

View Article

Link Slider and TextInput values together

Hi, i m new at QtQuick so i have some “little problem”. I want an editable area to type a float from -10 to 10 with 2 digits only. I want the slider to move when i type the number or if i want to use...

View Article


How to list all drives under Windows using QML

Hi, I am making a small file browser using a laboratory module “Qt.labs.folderlistmodel 2.1”, it works fine except that it cannot list the drives under Windows. In C++, when setting...

View Article

How to define and handle multiple contexts for dynamically created components?

Basically my situation is like this: I’ve got a class that extends QQuickView and that exposes certain objects from C++ to QML by setting context properties. The views that are shown are created from...

View Article


List Model elements from Qt to QML

Hi , I have taken one listmodel on rectangle . Now i want to change the list of that listmodel from Qt using Property alias but i am not able to access the model . can any one help? Thanks, Mahesh...

View Article

Image mask particle system differs

Hi, I tested your code on Ubuntu 14.04 with Qt 5.2.1 and it works as desired. What is your development environment ?

View Article


[SOLVED] QtQuick2ControlsApplicationViewer connect signal to slot

Thanks! I just did what you said. Installed Qt Creator 3.1 and used the engine class. Works perfect! I also manually transfered all data from my old projekt into a new one. Just saw that some new files...

View Article

My TableView Doesn't work

Hi everybody; Who can help me to solve my problem. cpp file :  QQmlApplicationEngine engine;   QSqlQueryModel *model = new QSqlQueryModel;        ...

View Article

Crop center part (1/3) of the window and display in full screen in the same...

I am previewing the camera image in 640*480 window. I want to crop the 1/3 of the preview image and display in the same window 640*480. How I do in Qt. Can any one of you give suggessions. Thanks In...

View Article
Browsing all 4972 articles
Browse latest View live