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

How to design a custom videoOutput?

I tried grab() function before, but this solution can’t work on android,it will crash I find through the document and exmaples but have no clue of how to get the buffer of videoOutput, safe the result...

View Article


QlineEdit

QLineEdit::text() i.e. QLineEdit e; QStrint s;   .....   s = e.text();

View Article


Project ERROR: Unknown module(s) in QT: quick

If I were in your shoes I’d download official Qt 5.2 packages from Downloads section on Qt-Project, cuz it has Qt Quick enabled 100%

View Article

MediaPlayer Metadata is gone in QT5.2??

You might have found a regression then. Have a look at the bug report system [bugreports.qt-project.org] to see if it’s already known. If not you could consider creating a new report. You should...

View Article

how to use a class written in javascript to qml ?

what need write for a type spot, to use the class written in javascript ? import QtQuick 1.0 import "control.js" as ScriptControl   Item {     property type...

View Article


QML animation not working

To apply animations related to changes to the model, you should use the transition properties of the ListView. See ListView.move [qt-project.org] That function is available only in Qt 5, I am using Qt...

View Article

how to use a class written in javascript to qml ?

“Component is not ready” suggests that it takes time for your component to load. You need to wait until it finishes loading, before assigning it to a variable. Do the assignment inside the...

View Article

[ListView]How to use C++ to add Row for ListView?

I have no idea about it.. I tried to set ListView’s model as a QStringList, but it doesn’t update when I append string to QStringList… Thanks a lot…

View Article


[ListView]How to use C++ to add Row for ListView?

There is an unofficial way. use QMetaObject::invokeMethod     QQmlApplicationEngine engine(QUrl("qrc:/qml/main.qml"));     QObject *topLevel =...

View Article


How to return pixels from QPixmap to QML

How would one return Image bits to QML from C++? I have this code in c++: QImage image = m_pixmap.copy(sx, sy, sw, sh).toImage();   image = image.convertToFormat(QImage::Format_ARGB32);...

View Article

TestCase - Test Driven Development (TDD) in QML

Creating a simple test case files to run with either qmlscene or Qt Creator. >qmlscene test1.qml file:///x/d/qt/testDrivenQML/test1.qml:25 Type TestCase unavailable...

View Article

[Solved]Any example of StackView?

Qt5.2 Studying StackView but have no idea how to use it. import QtQuick 2.2 import QtQuick.Controls 1.1   Rectangle {     id: root       width: 360...

View Article

how to use a class written in javascript to qml ?

The ‘var’ property type is only available in QtQuick 2.0, not in QtQuick 1.0. (Well, technically, in QtQml 2.0, but yeah.) Cheers, Chris.

View Article


Qt5 bug Listview or QAbstractModel??

Hi all, I’m currently create a multi platform application. It was previously created with Qt4 and QtQuick and there is no problem at all. The problems happen when I try to use Qt5. I don’t know how to...

View Article

[Solved]Any example of StackView?

I find an example by myself example [qt-project.org] If you know more examples of StackView, please show me, thanks.

View Article


QML Styling issues

Hi all! I read this topic QmlStyling [qt-project.org] but still have two questions about usage: 1. Can I set qml style dynamicaly after start application? 2. How I can create several styles for...

View Article

qml file not found

Hi, I have created a empty project in Qtcreator and then added one qml file into it along with one main.cpp and other .h and .cpp files.When i am trying Run it from Qtcreator everytime iam recievibg a...

View Article


Is it possible? I want to paint on QGraphicsScene !!HELP..

to my paint application need to insert mousepress,release and move events to draw on graphics scene..and other functionalists i want it same as “Diagram Scene”..how can i approch to this.

View Article

object reference between two files over thrid

Hi, I try to address the QML-objects between different files: main.qml : Column { InfoView { id : info } ButtonBar { … } } InfoView.qml : Row { Item { id : view3d InfoQt3d { … } } } InfoQt3d.qml :...

View Article

Distributing QtQuick application on Windows

Hi, I created a small application using Qt for me and my colleagues. Now I would like to share it with them. It runs fine from QtCreator but I don’t know how to distribute it correctly. I took the...

View Article
Browsing all 4972 articles
Browse latest View live