A good way to allow editing of Model items?
hey i’ve been learning normal Qt for over 7 months and i only just started learning some Qml after hearing so much about it. I’ve been trying to get a better understanding of data models and views in...
View ArticleProblems using MouseArea inside a delegate of a Repeater - ends up 1 pixel tall!
Good evening everyone, I’m new to these forums, however I’ve been reading and enjoying all of the knowledge shared here to date! I’m having some problems here with using a MouseArea inside of a Text as...
View ArticleA good way to allow editing of Model items?
I think it’s convenient to operate ListModel (modify and so on) using Qml: http://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-listmodel.html
View ArticleProblems using MouseArea inside a delegate of a Repeater - ends up 1 pixel tall!
The mistake is that in your delegate you are using anchors.fill from the rect to the parent item with margins of 8. Since you calculate the total size of the item to be the same as the text rect and...
View Articlehow to disable font kerning in TextEdit
I tried this, but failed. void MainView::setFontKerning (QQuickItem *item){ QFont font = item->property ("font").value<QFont>(); ...
View ArticleProblems using MouseArea inside a delegate of a Repeater - ends up 1 pixel tall!
Thank you very much for your insightful response! I’ve fixed my code and removed the margins, etc. and everything is working much better now. I really appreciate your feedback!!! Now if I can only...
View ArticleNeed help at creating components module
Hi, I created a components module using the Qt Creator template for QtQuick 2 and the building runs fine but when i want to use the module i get an error saying that my module isn’t installed:...
View ArticleUsing QGraphicsView inside QML doesn't receive Touch Events!
Nobody has an idea? Workaround?
View ArticleNeed help at creating components module
I believe it should be QT_INSTALL_QML with Quick2 as Chris suggested.
View ArticleUndecorated Window
Hi Im wondering how i can create an undecorated window. I want do disable the outside borders and status bar. Any Idea? QtQuick.Window does not seem to have such a feature and i was not able to add...
View ArticleUse QML VideoOutput item with C++ QMediaPlayer?
Hi, is it possible to render video from the C++ class QMediaPlayer in Quick2’s VideoOutput item? I need to use real c++ features like the QVideoProbe, but still display via the Quick2 engine. I have...
View Articledebugging small memory / cpu leaks
Hi I’ve left my application running during the night wondering if it will be stable till morning. It was. But i noticed an enormous memory consumption this morning. And also the application uses more...
View ArticleQGraphicsProxyWidget and KeyNavigation - not a QDeclarativeItem?
It sort of looks to me like I’m going to have to go through the whole business of putting a QComboBox into a QDeclarativeItem rather than a QGraphicsProxyWidget. If I’ve stumped the crowd here, I’m...
View Article[Solved] Can't dynamically add and display objects to QML from C++ (Qt 5.02)
Hi all, I’ve been trying to learn how to dynamically add objects to QML from C++ code, but all the code I write doesn’t work. I want to add an object defined in Unit.qml to the application’s window...
View Article[Solved] Can't dynamically add and display objects to QML from C++ (Qt 5.02)
Cool :) Please prepend “[Solved]” to the topic’s title (you need to edit your first post too do that), it might help some other bloke in need ;)
View Article[SOLVED] Need help at creating components module
Yep you where right. It has to be in the qml folder not in the import folder. Thank you very much. :)
View ArticleWierd looking text in TableView section in Qt 5.1.0 Beta
The text of the sections in a tableview are not rendered correctly. (It is the same sort of effect with text running the “Scene Graph – OpenGL Under QML” example.) Here is a screenshot od the TableView...
View ArticleHow to perform tasks sequentially?
Hello everyone, I am writing a program that download a database from another computer, and display it in a corresponding QML view. But when I try to do so with the code below : ...
View ArticleA good way to allow editing of Model items?
Models should be part of the business logic and belong to C++. Accessing model data is currently readonly. You must provide a Q_INVOKABLE setData method in your model if you want to modify data in a...
View ArticleHow to perform tasks sequentially?
Okay. Here is the code for the NetworkModule. #include "NetworkModule.h" NetworkModule::NetworkModule() { /* flag permettant de savoir quel message on reçoit */...
View Article