Re: [Qt-qml] Custom data type in slot parameter

2010-10-24 Thread michael.brasser
Hi Robert, On 22/10/2010, at 4:06 PM, ext Robert Voinea wrote: > I have a QtDeclarative application and I want to connect a signal in my C++ > code to a QML slot. > > The problem is that the signal in the C++ code has a custom data type > (ButtonInformation). > I have registered the custom data

Re: [Qt-qml] Starting an external program from QML?

2010-10-24 Thread Kai Koehne
On 10/25/2010 8:07 AM, ext Raymond de Vries wrote: > Hi, > > That makes sense indeed, stupid of me. Could you point me at an example > how to use the C++ slot from QML? I have been looking for this but I > guess I am missing something... There are actually multiple ways. One is to expose your slot

Re: [Qt-qml] Starting an external program from QML?

2010-10-24 Thread Raymond de Vries
Hi, That makes sense indeed, stupid of me. Could you point me at an example how to use the C++ slot from QML? I have been looking for this but I guess I am missing something... thanks Raymond On 10/25/2010 5:16 AM, Gregory Schlomoff wrote: > As far as I know, there is no built-in support in Q

Re: [Qt-qml] Starting an external program from QML?

2010-10-24 Thread Kai Koehne
On 10/24/2010 10:51 PM, ext Raymond de Vries wrote: > >Hi, > > I would like to start an application from QML. I did not find any > documentation about this so can someone please give me some advice? > Starting the application from a button click would be enough. You can easily do this in C++:

Re: [Qt-qml] FontLoader memory consumption

2010-10-24 Thread yann.bodson
Hi Cornelius, Just letting you know that I have closed this bug as it was already fixed in our development branch. The fix will be in 4.7.1 but until then you will have to use Aaron's workaround. Cheers, - Yann On 22/10/2010, at 8:57 PM, ext Cornelius Hald wrote: > Hi Aaron, > > thanks for t

Re: [Qt-qml] QDeclarativeProperty and custom qml types.

2010-10-24 Thread Simon Aridis-Lang
Thanks for the tips (it confirmed i wasn't going completely bonkers), but I think there might be an issue with QDeclarativePropertyPrivate::write. (qdeclarativeproperty.cpp:950) obtains an enginePriv* which is obtained from a passed in (private) context pointer, so even if the property is create

[Qt-qml] Starting an external program from QML?

2010-10-24 Thread Raymond de Vries
Hi, I would like to start an application from QML. I did not find any documentation about this so can someone please give me some advice? Starting the application from a button click would be enough. thanks a lot Raymond ___ Qt-qml mailing list Qt-

[Qt-qml] Best way to convert current C++ UI to QML UI?

2010-10-24 Thread Raymond de Vries
Hi, I feel like it should be like a straight forward task but I cannot find any documentation about it... I would like to convert my Qt C++ UI code to QML UI, and still be able to use the same slots etc. Is there some documentation about this? Thanks a lot, Raymond _

[Qt-qml] setContextProperty and Property bindings

2010-10-24 Thread Schmidt
Hi there, I have a small class with one property. It is exposed from c++ to qml via setContextProperty(). But when i change The property in c++ and emit the NOTIFY signal the property is not changed in qml. I can set and read the value in qml perfectly. In c++: Class menu { Q_PROPERTY(int d

Re: [Qt-qml] Custom QML components

2010-10-24 Thread Charley Bay
Adriano spaketh: > I've added a small project in the open components: > > http://gitorious.org/qmlarsenal > http://developer.qt.nokia.com/wiki/QtQuickOpenComponents > > It can be useful for someone. Thanks for posting -- more ideas/examples would help a lot with QML adoption, IMHO. Question: Wha