How to disable a property:
Hi I am defining my own Qml Item in one file (Tile.qml) as like below. Rectangle { id : tile width: 100 height: 100 color : “red” property alias text : txt.text property alias bgColor : tile.color...
View ArticleAnimatedImage Bug
I would suggest you try it with the latest Qt version. If the problem still persists for that platform you can report it as a bug here [bugreports.qt-project.org]
View ArticleQt int to String in qml aka sprintf in c
Hi, I need to print a number in qml in this way (with three digits), for example 3 -> 003 10 -> 010 etc… How I can do this in qml, with this code? property int val: 10 Text {...
View ArticleHow to disable a property:
Hi, To add to dasRicardo’s answer it is not possible for the built-in properties but for user-defined properties you can try this [qt-project.org] way.
View ArticleQt int to String in qml aka sprintf in c
Hi, AFAIK there’s no direct way to do this. But you could write a function in C++ or in JavaScript to do that. For JS way something like this [stackoverflow.com]
View ArticleAfter setting default item index of QCombobox will not be updated on GUI
Hi, I would like to add items to my combobox during starting up my application. And after adding all my items I would like to change the current index to my default. Sadly on the GUI the combox is...
View ArticleBuilding Business Software using Qt
Hi Guys, I want to build a business software such as : a traveller management software . My software have some requirements: +) Can run on PC and Mobile +) Data on the cloud I intend to build UI by Qml...
View ArticleColumnLayout - bottom to top?
I know what you want and in RowLayout it works and i hoped it would do the same for ColumnLayout. OK, so simply added in the order you wish. If you want to have last item on top add the last item first :)
View Article[SOLVED] Qt Quick application creasshed when user close main screen.
Ok, I’ve build my application with Qt 5.4 beta and all works fine!
View ArticleQML: How to delete/access an object created with Qt.createQmlObject?
Hi everyone, I am working on automatic generation of user interface components from an XML file. I have an XML Model with XMLRoles and javascript functions that read the model and create objects via...
View ArticleBuilding Business Software using Qt
Hi Gianluca, Thanks for your feedback . I will consider it
View ArticleQML: How to delete/access an object created with Qt.createQmlObject?
Hi, For QML Dynamic object generation and deletion you can check this [qt-project.org] doc. My UI components are generated, but I dont know how to access them. From the same doc consider the following...
View ArticleRead only row in TableView
Hi, I have a TableView in my GUI. The TableView I pass a QStandardItemModel. My table has 4 rows and 3 of them I would like to have read only. How could I do that? Thanks for your help.
View Article[SOLVED] After setting default item index of QCombobox will not be updated on...
It’s now running. The methods insertSeperator() and setCurrentIndex() should not have the same index. Solution below. ui->comboBox->insertSeparator(4);...
View ArticleRead only row in TableView
Hi, When you add an item to your model, set it flags by disabling Qt::ItemIsEditable and you should be good
View ArticleColumnLayout - bottom to top?
OK, so use anchors and everything is fine. Stick the ColumnLayout to the bottom of it’s parent.
View Article[SOLVED]Disable drag in MouseArea
Hi, I got some elements on flickable and wanted to add possibility to move that elements. Decided to use pressAndHold signal from MouseArea to activate drag but got a problem with disableing it. It...
View Article[Solved] Display text and image in Tableview
I have a QAbstractTableModel and use QML’s TableView to display it. Roles are used to determine the column to display. itemDelegate is used for the TableView cells Depending on the information in...
View Article