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

Painting inside a transformed Canvas

Hi, I have trouble drawing inside a Canvas if the renderStrategy is not Canvas.Immediate after/during a fast resize of the window. In the image https://www.dropbox.com/s/tmbht4g19sqa9kl/QtPieSlice.png...

View Article


Module "XXX" is not installed

hi guys, I’ve came across with a very strange problem. Namely I created a new “Qt Quick 2” project and then wanted to extend functionality with C++, for that I declared a class like this : #include...

View Article


Module "XXX" is not installed

You need to inherit from QQuickItem instead of QDeclarative* (which is QtQuick 1).

View Article

Get file info when dropping a file in DropArea

I’m not sure if this is possible yet. See bug report [bugreports.qt-project.org]

View Article

onClicked issues

Yes you can. MouseArea {         id: mousearea11         x: 56         y: 51  ...

View Article


Get file info when dropping a file in DropArea

The DropArea component uses the QQuickDropEvent class which does not give access to mime data like the QDropEvent class does. Why don’t you try creating your own custom qml component and override the...

View Article

How to show data from database in a ListView ?

I do not believe it is possible without writing some custom c++ code. QML Model Types [qt-project.org]. Have a look at this QSqlQueryModel in QML [qt-project.org].

View Article

Debugging a crash in libQtDeclarative (Qt 4.8.1)

I just wanted to inform you guys about the solution to my problem. In summary, the problem seemed to be a C++ / QML-engine interfacing and memory management issue: I was lucky enough to identify a...

View Article


Combining ParentChange with AnchorChanges

Thanks moeg687. Your code indeed works, but now there is another problem: if I enable clipping on the redRectangle, changing parent via topItem doesn’t work, the blueRectangle is still being clipped...

View Article


At a loss

visible: state==“specific_state” Do you need this?

View Article

Video does not play in the format mp4

I use Qt 5.0.2 for Windows 32-bit (MinGW 4.7). I created simple Qt Quick 2 Application (Built-in Elements) with this code: import QtQuick 2.0 import QtMultimedia 5.0   Rectangle {  ...

View Article

QML is possible to carry on a QMainWindow?

I have a project with several QMainWindow and want to include QML. is possible?

View Article

QML is possible to carry on a QMainWindow?

This is going to be included in Qt 5.1

View Article


Call .qml from javascript

Is there anyway to call a call a qml file from javascript? I’m using javascript to sort through the images and I’d like to show the sorted images in a qml

View Article

Any QValidator class in which I can pass QStringList as valid options.

I have a QLineEdit editor along with QComboBox. Now I want that user can give only some of the pre-defined strings as value in QLineEdit. So is it possible that I pass that list as QStringList to...

View Article


QML ListView delegate problem

I did not specify any header component, and it is strange that the unknown item is always second. Also if this was the header than it would appear after I repopulate the model too.

View Article

Any QValidator class in which I can pass QStringList as valid options.

Hi, Not out of the box. But if you want the user to only enter a string that’s in a list, why not use directly a QComboBox ? So no need to validate the input.

View Article


How to call setModelData with new value from editor if old value is not valid.

I would say, don’t allow to return from you editor until the user has given a valid input. That’s not the job of the model to check that.

View Article

Combining ParentChange with AnchorChanges

Your last code sample works, since it uses the built-in properties of ParentChange – “x” and “y”, and your solution is probably as good as it can be at the moment. What I was concerned about is that...

View Article

[SOLVED] TypeError: Object has no method 'process'- BUT IT HAS

I have a problem with a C++ class I’ve exposed to the QML context. The object is wrongly recognized as a QAbstractListModel: TypeError: Object QAbstractListModel(0×28fdfc) has no method ‘process’ but...

View Article
Browsing all 4972 articles
Browse latest View live