Quantcast
Browsing all 4972 articles
Browse latest View live

Create Qt Quick Controls fully programmatically?

Great, works. Thanks! TestObject:: TestObject(QQuickItem *parent) : QQuickItem (parent) {    this->setFlag(ItemHasContents, true); }   QSGNode *...

View Article


How to establish connection from QtSystemTrayIcon menu items to QML

main.qml launches from main.cpp : QApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral(“qrc:///main.qml”))); How to launch qml scene from tray menu...

View Article


How I can add a qml object to QGraphicsScene using QtQuick 2.0?

I modify the constructor of DiagramScene in a qt example for see a QML widget but this not work: DiagramScene::DiagramScene(QObject *parent)     : QGraphicsScene(parent) {  ...

View Article

send QVariantList and QVariantMap to JavaScript Array and Object

Maybe the problem is your view’s variable type. Here, I’ve tested the same code as you and it worked. However, I’ve changed the view type to “QtQuick1ApplicationViewer” and I’ve used “setMainQmlFile”...

View Article

Which renderer is utilized?

I experience extreme long render times of up to 3 seconds with the following setup: Atom N250+HT, Intel 45GSE, 2GB RAM under linux kernel 3.15. A scene is rendered in 1920×1080 with five gridviews...

View Article


How to define a custom group property?

First sorry for that :) Another way, you can create your own group properties class. Create a class from QObject and register it as Qml Type. Now you can use your custom type as property type. The...

View Article

How I can add a qml object to QGraphicsScene using QtQuick 2.0?

The problem is that the container widget drawn empty, I think the the problem is associate with OpenGL, exactly for diferences between the normal QGraphicsItem render an the QML render in the same...

View Article

Loaded QQuickItem, how to set properties correct?

How can i set the build in properties right? I create a QQuickItem via QQmlComponent: LoadQuickItem::LoadQuickItem(QQmlEngine* engine, QQuickItem* parentView, QObject *parent) : QObject(parent) {...

View Article


Loaded QQuickItem, how to set properties correct?

Connect the heightChanged signal to a slot, then get the height of item1 and then setProperty to item2.

View Article


[solved] How to define a custom group property?

Interesting idea! I’ll check that out!

View Article

send QVariantList and QVariantMap to JavaScript Array and Object

It’s storage for me too, Qt Creater 3.1.1 based on Qt 5.2.1

View Article

Issues with signal and slot- Qt4

I have created a GUI which involves selection of topics from one ComboBox (evaluation_box) leading to load all the topics related to that particular topic into another ComboBox (sequence_combo_box)....

View Article

Issues with signal and slot- Qt4

There are a number of issues here, but to address your “No such slot” problem, it seems to me as if you are attempting to connect your SIGNAL to a QComboBox (ui_.sequence_combo_box)…and QComboBox does...

View Article


[Solved] How I can add a qml object to QGraphicsScene using QtQuick 2.0?

How I can mark this thread as solved? Edit your first post and add [Solved] to the title.

View Article

Issue with Animations

Hi, 1) I don’t understand the Behavior animation: Behavior on width {          NumberAnimation { duration: 1000 }      } Why this...

View Article


Issue with Animations

Probably you didn’t explain yourself completely, because the questions seems a bit silly. 1) It’s just syntax! 2) because transitions animates the changes when passing from a state to another, and in...

View Article

Android/ios image picker

For iOS you need to use UIImagePickerController, and because it’s very easy to mix Qt C++ code with Objective-C code, just look with google on a tutorial for using UIImagePickerController and you can...

View Article


Flow + Repeater + Image = performance issue

Hello All! I have a issue with performence, when try to load a lot of images using Repeater to the Flow, How it’s looks like: Flow {         id: grid  ...

View Article

[SOLVED] EV_KEY KEY_POWER not showing.

Sorry, i just forgot to install after compiling… It is working now.

View Article

How to make my application scriptable

I’ve got a C++-QML-application and would like to allow my users to create their own plugins for it. All I’d need to expose is a string that changes time after time. I’d want the users to be able to...

View Article
Browsing all 4972 articles
Browse latest View live