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

QQuickWidget and TextInput or TextField not working in Qt 5.3.0 RC

I try to port a program from using ‘createWindowContainer’ to the new QQuickWidget in Qt 5.3.0 RC In this widget i have a simple Rectangle with a TextInput. The ‘TextInput’ shows no cursor when clicked...

View Article


Bold text disappears when changing translation and default font

This only seems to happen with the Japanese prerendered font bundled with Qt. Other TTF works okay.

View Article


Create a "Identified Module" does not work

I try to create a module with the help of following documentation guide: http://qt-project.org/doc/qt-5/qtqml-modules-identifiedmodules.html I have created an empty Qt Quick Desktop application with Qt...

View Article

Is there a way to change front/back properties in a Flipable?

The Flipable element can easily offer nice transitions. But is there a way to change the back and/or front once they’re set? For example, if I do this: Flipable {     id: flipable...

View Article

Playing QML Audio or Multimedia from qrc not working on Android

Hi, I was trying to play a sound file with the QML Audio or MultiMedia components from qrc, but it doesn’t work on Android. Running the same code on Windows works. Based on this bug report...

View Article


QObjectList as model is not updated by Repeater when changing data of model!

Hi all, I try to use a QObjectList in C++ as model for a QML Repeater instance. If I add a new object to QObjectList in C++, the Repeater destroys all prior created items and creates new items. I think...

View Article

[SOLVED]Dynamic Binding of QML Object and Factory created C++ object

GOT IT. this worked: onClicked: {     var component = Qt.createComponent("master_item.qml");     if (component.status == Component.Ready) {...

View Article

Is there a way to change front/back properties in a Flipable?

Change the source of the image, not the object. Or use a Loader. Well, yesterday I tried something like that (not with an Image), but it gave me an error saying that I couldn’t modify read-only...

View Article


How to preserve TextField binding when user manually edits value

Sorry if I misunderstood you, but isn’t this what you wanted?     ColumnLayout     {         property alias fieldValue :...

View Article


Can a QML file refresh a JS import at runtime?

Yes. use Qt.Include() see this [qt-project.org]

View Article

How to get HID device and interact with the hid device

I am using Qt version 5.2.1. I want to get HID device VID and PID and send the command to the hid device to change the device value. I am working for long time. But i am not able to get HID device VID...

View Article

Playing QML Audio or Multimedia from qrc not working on Android

Using the Audio or MultiMedia QML elements to play from resources also does not work on iOS and Mac! You can give this issue a vote in the bug tracker here:...

View Article

Can't get menu bar in Qt Quick Components, using C++ and QQmlApplicationEngine

Now that Ubuntu finally has Qt 5.2, I’m playing with Qt Quick Components, and right now I’m having issues trying to get the menu bar to show, when I try to implement the menubar I get this message:...

View Article


How to access C++ type from JavaScript code?

I defined my QObject-derived class with qmlRegisterType. After that I try to use this type in JS code like this: console.log(typeof MyQObject) or if (obj instanceof MyQObject) ... and this didn’t work....

View Article

Can't get menu bar in Qt Quick Components, using C++ and QQmlApplicationEngine

Can you check, whether your window is really a window?    QQuickWindow * window = qobject_cast<QQuickWindow *>(topLevel);    if ( !window ) {...

View Article


How to preserve TextField binding when user manually edits value

That’s exactly what I was looking for. I still don’t understand why the binding is lost, but I’m really after the correct way of coding QML and using an alias is much simpler than what I was doing. In...

View Article

Increase sampling rate ( interp(); function in MATLAB )

Hello i have just finished my project on MATLAB but i need to show result on QT as animation. i need to sample original signal array …increase sampling rate more than 10 or 100 or 500 is good for me....

View Article


Usage of setContextProperty

That’s strange.. does that work with just setContextProperty(“identifier”, obj); ? Hello, Sorry for the late reply. Yes this is an example. I wanted to know whether this will work in the way that i...

View Article

How to emit signal with variable as reference from qml to c++

I want to emit signal with list of objects as a reference fro QML to c++ code. In c++ i am accessing the reference. I worked for long time but i am not able to get it. Is there any idea to achieve....

View Article

Increase sampling rate ( interp(); function in MATLAB )

Hi, Qt does not offer advanced mathematical functions. You have 3 options (from simplest to hardest): Interpolate your data in MATLAB before passing it to Qt Link your Qt project to a mathematical...

View Article
Browsing all 4972 articles
Browse latest View live