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 ArticleHow 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 ArticleQML 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 ArticleQt 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 ArticleUse 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 ArticleDetect 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 ArticleNew 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 ArticleSome 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 ArticleQML 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 ArticleJavascript 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 ArticleQTQuick2 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 ArticleTableView 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 ArticleRead 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 ArticleWhat'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 ArticleQml 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 ArticleWhat'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 ArticleTableView 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 ArticleWill 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 ArticleQml 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 ArticleBest 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