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

QML TableView column sizing

I have 2 questions: 1) How do you get the height of all the rows? I’m looking for the TableViews implicit height as I’m trying to add several tables to a list and don’t want them adding in their own...

View Article


How to invoke operator [] to QML?

Hello everybody. That’s my question. I’ve a QAbstractListModel-derived class. I need to define operator [] and use it at QtQuick side. I define this operator and use it at C++ side well, also I invoke...

View Article


QML ComboBox model from C++

Hey! I have a list from C++ containing language code, language description and a flag for the corresponding country. I made the connection to QML, but cant get to set the model right. I tried different...

View Article

Qt Quick and FrameBuffer issues

I’m using QQuickFramebufferObject to render a custom OpenGL 3d scene inside a QtQuick Item. Following the Qt Quick + FBO example, I’m having two issues. I’m using the Windows ANGLE version, Qt 5.3.1 -...

View Article

Use Style for QtQuick.Controls from Resources file

Hey, I want to use al the components and stuff in my QT/QML application from the Resources file. Everything worked but i have a am not able load the style of a QtQuick.Control Item from Recources Here...

View Article


Detect movement inside an Item

What I need is actually to detect changes in the data returned by myItem.mapToItem(mainWindow.contentItem, 0, 0). I could periodically call this function in a QTimer and compare returned objects, but...

View Article

New drag-and-drop mechanism does not work as expected in Qt-Quick

I’ve tried to implement drag and drop in Qt 5.3 using the new QML types Drag [qt-project.org], DragEvent [qt-project.org] and DropArea [qt-project.org]. This is the original example from the...

View Article

Some issues with rotation of buttons inside a circle

hi , I wanted to partition a circle into 5 clickable area (buttons) using QML so when I click on any area of them , the circle should rotate until this area reach the middle of the left side of the...

View Article


QML ComboBox model from C++

Hi, I’m not sure if this is correct but I use QVariantList with strings for ComboBox. For example: QVariantList MslHelpers::keychainActionTypeList() {     QVariantList list;...

View Article


Javascript assignment destroys property binding

I can ask my question slighty differently: Is there any way in QML to do something like this: // ToggleButton.qml import QtQuick 2.0   Rectangle {     property bool status:...

View Article

QTQuick2 Application wont start on some platforms

Hi Andreas we had the similar problem. Our final solution was to switch to QtQuick1.x, because QtQuick2 depends heavely on GL. dan

View Article

TableView remove all selected items

Hi, I can’t figure out how to remove all selected items of a TableView, when using SelectionMode.ExtendedSelection. There is a forEach function in the Selection, but this only iterates over the...

View Article

Read all files inside a resources directory in and load them to a list model...

Please look at ListModel documentation and see the methods called insert(…) or set(…). or append(..). They will help you do what you are looking for.

View Article


What's the better way to construct an application with two or more windows?

What’s the better way to construct an application with two or more windows? I tried with QT Creator but I’m not has be successful. I’m a newbie on QT structure. I need some pointers (links) or...

View Article

Qml problem with font size

Hi all I have problem with font in my application for Android I am use this code font.pixelSize: 46 * gameField.height / 800 for scaling font size on different screens but I have a problem with at list...

View Article


What's the better way to construct an application with two or more windows?

Hi and welcome to devnet, You should take a look at Qt’s documentation examples and demos, they show pretty much all the basics you need.

View Article

TableView remove all selected items

I know, but what I don’t know is how to sort the selection. Is there a way to get the range of the selection as an array? The problem is, that when you use SelectionMode.ExtendedSelection, you can...

View Article


Will QQuickWidget be supported on Android/iOS in the future?

Hi and welcome to devnet, You should rather ask this question on the interest mailing list. You’ll find there Qt’s developers/maintainers(this forum is more user oriented)

View Article

Qml problem with font size

Better to use the pointSize. Also you can calculate 46/800 only once and use it everywhere. It may little bit performance impact with propertybindings every time.

View Article

Best Practices: Nest elements inside MouseArea or nest MouseArea inside element?

As the title says. What are the pros and cons of each way?

View Article
Browsing all 4972 articles
Browse latest View live