Hello,
I have a class defined in C++ called RssItem and exposed to QML with
qmlRegisterType(...). In Qml I am accessing an XmlListModel and
inside the delegate I am creating a RssItem object for each item in the
model that is displayed in a listview in qml. At some point when clicking
on the item i
Thanks Christian, it works like you said:
void DownloadManager::addDownload(const QString &path, const
QScriptValue & rssItemSV)
{
...
RssItem * rssItem = qobject_cast(rssItemSV.toQObject());
...
}
Regards,
Cristi
___
Qt-qml mailing list
Qt-qml@t
Hello,
I have a C++ project that displays QML files inside a QDeclarativeView.
I tried to make Audio work according to the user manual example and I
cannot:
import Qt 4.7
import Qt.multimedia 4.7
Audio { source: "audio/song.mp3" }
I get the following error:
file::/qml/main.qml:2:1: module "Qt
Qt" 4.7 Library as ""
QDeclarativeEngine::addToImport 0x173efeac "Qt.multimedia" 4.7 Library as ""
file::/qml/main.qml:2:1: module "Qt.multimedia" is not installed
import Qt.multimedia 4.7
^
Best Regards,
Cristian
Justin McPherson wrote:
>
L. Did you supply a valid URL for the QML file?
> QUrl::fromLocalFile() is the easiest way.
>
> Regards,
> Martin.
>
> On Tue, 15 Jun 2010 06:55:09 pm ext Cristian Daniel Stamateanu wrote:
>> Hello Justin,
>> Here is the output for tvtennis:
>> Star
Ok, got one step further, I added to my cpp code the following:
...
QDeclarativeEngine engine;
engine.importPlugin("C:/Qt/4.7.0-beta1/imports/Qt/multimedia/multimediad.dll","Qt.multimedia");
...
ui->declarativeView->setSource(QUrl::fromLocalFile(":/qml/main.qml"));
and now it seems to work, but
ces, and for some reason I didn't think fromLocalFile would work :)
> I'm not sure it works inside the qml files directly though, ie. : Image {
> source: ":/someimage.png" }
>
> Cheers
> Romain
>
> On Wednesday 16 June 2010 09:58:13 Cristian Daniel Stamate
Thanks, in ubuntu it works perfectly. It seems like a windows bug. I
hope it will be fixed till release of Qt 4.7
Regards,
Cristi
warwick.alli...@nokia.com wrote:
>> QDeclarativeEngine::importPlugin "Qt.multimedia" from
>> "C:/Qt/qtcreator-1.3.83/bin/Qt/multimedia/multimedia.dll"
>
> This is the
m getting a string only it is an empty one.
Any thoughts?
Best regards,
Cristian Daniel Stamateanu
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml
Thanks Kent, You were right on both counts. I don't need a QScriptValue
and the value is not sent from qml for some reason. I will investigate
further.
BR.
Cristian Stamateanu
On Tue, 29 Jun 2010 18:39:36 +0300, Kent Hansen
wrote:
> Hi,
>
> On 29. juni 2010 16:58, ext C
// whatever component was bound to it
}
...
}
Is this normal? Is there a workaround
Regards,
Cristi
Cristian Daniel Stamateanu wrote:
> Thanks Kent, You were right on both counts. I don't need a QScriptValue
> and the value is not sent from qml for
g and writing the title
> property of the Child.
>
> Cheers,
>
> Aaron
>
> On 30/06/2010, at 11:01 PM, "ext Cristian Daniel Stamateanu"
> wrote:
>
>> Ok, here is what I found, it seems that using bindings in QML, values
>> are transfer
12 matches
Mail list logo