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

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 Article


Can 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 Article


StackView 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 Article

TextArea 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 Article

can i use reference in signal slots

myfirst::myfirst(QObject *parent) :     QObject(parent) {     connect(this,SIGNAL(set(QString)),this,SLOT(seting(QString),Qt::QueuedConnection);  ...

View Article


Qml 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 Article

can 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 Article


Call 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 Article


Qt/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 Article

Call a qml function from C++.

Use slots or Q_INVOKABLE. c++ class Blah { .... public slots:    void iveBeenClicked() }; Pass class to qml Blah foo;...

View Article

Qml and dinamic text height

Ugly but works     property real rowHeight: textHeight.height     Text{ id: textHeight; visible: false; text: "Hello World"}   TextArea {...

View Article


Qt/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 Article

add QQmlComponent into QQuickView

Hi, I have the same problem here! Any news on that issue? How did you solve it?

View Article


How 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 Article

Call a qml function from C++.

    Connections {             target: myCppClass             onRunFunction:...

View Article


How 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 Article

can i use reference in signal slots

why const compulsory

View Article

Qt4 clear() issue : Am I using it right?

@SGaist- Thanks for the greetings. I got my problem solved

View Article
Browsing all 4972 articles
Browse latest View live