Can I construct a custom Qml item that contains a placeholder child?
I have a series of items that I need to apply the same OpacityMask to, and to simplify my code I’d like to create something like this: MaskedItem.qml: Item { MyMaskSource {...
View ArticleCan I construct a custom Qml item that contains a placeholder child?
Have you tried making your item the default property (http://qt-project.org/doc/qt-5/qtqml-syntax-objectattributes.html#default-properties) of MaskedItem? Alternatively you could try working with a...
View ArticleStackView different pages text display problem
Hi, I just start to write apps using QML, but I find the text display in StackView is a bit messy, even in the simplest case. Here’s the code: main.qml import QtQuick 2.2 import QtQuick.Controls 1.1...
View ArticleTextArea in ListView delegate
I build a test project for this issue. Test Project [dl.dropboxusercontent.com] What I found during the rebuild was, that the issue only shows up, when setting the textMargin property of the TextArea.
View Articlecan i use reference in signal slots
myfirst::myfirst(QObject *parent) : QObject(parent) { connect(this,SIGNAL(set(QString)),this,SLOT(seting(QString),Qt::QueuedConnection); ...
View ArticleQml and dinamic text height
Sorry but I haven’t got a fluent english. I have a quick text object. I will place some text in it and I want to increase or decrease its height property on the basis of how much of lines of text. Is...
View Articlecan i use reference in signal slots
Hi, If you use a queued connection, Qt will copy your signal arguments. You don’t need to worry about memory management (unless your argument is a pointer).
View Article[solved] Can we access ListView model Role In QML ?
From example presented in here http://qt-project.org/doc/qt-5/qtquick-modelviewsdata-cppmodels.html: a model has been defined in model.cpp : class Animal { public: Animal(const...
View ArticleCall a qml function from C++.
I normally use this line of code to invoke a qml function from c++ and all works well. QMetaObject::invokeMethod((QObject*)(this->rootObjects().first()), "CallOk"); But my...
View ArticleQt/QML: TextInput with Keys.onPressed receives only DEL key and not other keys
Hi, I simplified my example as follow, but still impossible to receive keys except DEL key by onPressed or onReleased keys handler. The device I use for testing is a Samsung Tab 3 8”, with Android...
View Article[solved] Can we access ListView model Role In QML ?
You’re Welcome :) You can mark the post as solved. Just edit the post title and prepend [solved]
View ArticleCall a qml function from C++.
Use slots or Q_INVOKABLE. c++ class Blah { .... public slots: void iveBeenClicked() }; Pass class to qml Blah foo;...
View ArticleQml and dinamic text height
Ugly but works property real rowHeight: textHeight.height Text{ id: textHeight; visible: false; text: "Hello World"} TextArea {...
View ArticleQt/QML: TextInput with Keys.onPressed receives only DEL key and not other keys
I actually asked it over the IRC channel. They replied that it was more like a feature request. I’ll post the whole conversation <astregon> Is there a way to get key pressed event for...
View Articleadd QQmlComponent into QQuickView
Hi, I have the same problem here! Any news on that issue? How did you solve it?
View ArticleHow to call a QtQuick Dialog form a Qt app
Is it possible to create a Qt Quick Dialog from a Qt application. If so how does one do it ? Thanks David
View ArticleCall a qml function from C++.
Connections { target: myCppClass onRunFunction:...
View ArticleHow to call a QtQuick Dialog form a Qt app
Probably not but the question is: “why do you need a Qt Quick Dialog in a Qt Widgets application?”
View ArticleQt4 clear() issue : Am I using it right?
@SGaist- Thanks for the greetings. I got my problem solved
View Article