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

Qt Quick Controls FileDialog onAccepted handler can not destroy objects right...

For example, if I open the Qt Quick Controls Texteditor example and add a line of code, destroying some qml object in onAccepted handler, it will not work: FileDialog {      ...

View Article


What is this QML code doing?

Hello All, I’m working on a mobile platform (Android) and trying to access the camera via the C++ Multimedia classes like QCamera. However, I only have success opening my device’s camera when I use the...

View Article


Is there a way to see QML files in "live" ? [solved]

Hi, Thanks. I see that. Sincerely

View Article

How to open a main window in a second monitor with 'Qt Quick'

Hi, I’m an all brand new programmer in Qt Quick and I would like to open my only and main window in my second monitor. It sounds simple but I wasn’t able to figure it out, despite the fact that I have...

View Article

Best practice associating event handlers with state changes

The only workaround I’ve found so far is:   Keys.onPressed: keyHandler(event)   property var keyHandler: function(event){}   ... PropertyChanges {    ...

View Article


undefined reference to `vtable for MyClass'

Oh I finally solved the problem myclass.h #ifndef MYCLASS_H #define MYCLASS_H #include <QObject>   class MyClass : public QObject {     Q_OBJECT public:...

View Article

QtQuick Controls not working correctly with custom QtQuick Items

Unfortunately, I don’t think the issue lies with transparency, or at least I couldn’t find any change after setting properties like color transp / visible on ApplicationWindow or any controls within....

View Article

How to open a main window in a second monitor with 'Qt Quick'

Hi and welcome to devnet, One way to do it is to get the geometry of your second screen using QDesktopWidget and then move your application window in that geometry. Hope it helps

View Article


Size of bold font changes between 5.3 and 5.2.1 qt - Any workaround?

As stated here (https://bugreports.qt-project.org/browse/QTBUG-39412) currently the size of bold fonts changes between the use of Qt 5.2.1 and Qt 5.3 on desktop applications. Since the android...

View Article


How to queue the invocation of a slot instead of calling directly ?

Dear all, with the QMetaObject from C++ it is possible to use the invokeMethod with the option to queue the invocation to the event thread instead of calling immediately. I’m wondering if there is an...

View Article

[SOLVED] Accessing properties in QML Delegate for imported C++ objects /...

Hello, I am making a parameter edit screen with QML, QT 5.3. I am importing a C++ map of objects as a Listview model, and it almost works : All rectangles appear, but no text in it. I get these QML...

View Article

QtQuick Controls not working correctly with custom QtQuick Items

Could you try using plain Window instead? There is nothing peculiar about ApplicationWindow with regard to controls unless you need to create top level menus which requires it. It could be that it...

View Article

Getting an Image Buffer from VideoOutput/Camera

Hey All, As per this bug report (https://bugreports.qt-project.org/browse/QTBUG-38942) I seem to be stuck using QML for my Camera accesses. I need to get the frames from the Camera as a QVideoFrame (or...

View Article


Qt 4.8 vs 5.3 for QML performance (embedded: no-OpenGL, soft-float)

Using a software opengl renderer doesnt sound like a good solution to me. I cant see how it would improve performance over 4.8. Im starting to think that QML in any form is too heavy for this ARM SoC....

View Article

[SOLVED] Accessing properties in QML Delegate for imported C++ objects /...

Thanks Vincent, for the suggestion to use qabstractitemmodel. It looks suitable. When I find the time, I’ll try this too, it may be more efficient.

View Article


ListView: How to get the index of the currently shown (not the selected)...

I have a ListView which fills a Rectangle. Each Delegate of the ListView has the size of the ListView, so that only one Item of the ListView can be shown at once. To ensure this, I use “SnapMode:...

View Article

Setting context property for a QQuickView crashing?

You’re welcome ! If this solves your problem, then please update the thread title prepending [solved] so other forum users may know a solution has been found :)

View Article


How to open a main window in a second monitor with 'Qt Quick'

It’s also a solution but you have to know your screen dimensions. With QDesktopWidget you ensure that you are in a valid geometry and don’t need to know your screen size.

View Article

HowTo: Struct -> QVariant -> QML type

Hi all, I have a struct which I wanted to use in QML. Is my understanding correct that: I could wrap my struct in QVariant, then I could just make a similarly structured js object in QML, then pass...

View Article

[SOLVED] ListView: How to get the index of the currently shown (not the...

Thanks man, just the link I needed :-)

View Article
Browsing all 4972 articles
Browse latest View live