[Interest] QtThread

2014-01-13 Thread Graham Labdon
Hi I have been reading about QtThread and there seems to be a lot of discussion about how to correctly use this class. i.e. should developers derive from QtThread or provide an QObject and move this object to a thread. The examples provided with Qt5 derive from QtThread whereas there is a lot of

Re: [Interest] QtThread

2014-01-13 Thread Etienne Sandré-Chardonnal
Hi, As Andrey pointed out, there is not a single way. But if you want to use a QThread for running QObjects with its event loop, the most simple way is not to subclass, and moveToThread. This is well explained here: http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/

Re: [Interest] Storing QMaps in a QVariant

2014-01-13 Thread Alejandro Exojo
2014/1/10 Alejandro Exojo aex...@modpow.es: In Qt 5.2 I see Q_DECLARE_ASSOCIATIVE_CONTAINER_METATYPE, where it even clarifies that all of the Qt associative containers already have built-in support and that if the key/value are already supported, QVariant should store everything. However, I'm

Re: [Interest] [Android] Profiling QML application

2014-01-13 Thread Koehne Kai
-Original Message- From: interest-bounces+kai.koehne=digia@qt-project.org [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf Of Ben Lau Sent: Sunday, January 12, 2014 5:53 PM To: interest@qt-project.org Subject: [Interest] [Android] Profiling QML

[Interest] Question about reading glsl shader source from a QResource using compression

2014-01-13 Thread Ola Røer Thorsen
Hi all, I've been looking at the Scene Graph - Graph example application included with Qt5.2.0, to see how to create a custom shader material for Qt Quick. In linenode.cpp, there is a LineShader class, where the shaders are read like so: const char *vertexShader() const { QResource

Re: [Interest] Qt laptop stickers

2014-01-13 Thread Juergen Bocklage-Ryannel
On 07.01.14 05:51, ??? ??? wrote: Hello. Does anyone have a Qt laptop stickers? Can you sell me some? Best regards, Nick ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Hmm, I think

[Interest] [QQuickView] rendering not started

2014-01-13 Thread Tim Blechmann
hi all, trying to use a QQuickView from a plugin context (from a QMacNativeWidget), i'm sometimes having problems that the initial rendering is not performed. unfortunately this seems to depend on the plugin host. trying to debug this issue by tracing the signals, i've found out the following:

Re: [Interest] QtThread

2014-01-13 Thread Sze Howe Koh
On 13 January 2014 18:26, Etienne Sandré-Chardonnal etienne.san...@m4x.org wrote: Hi, As Andrey pointed out, there is not a single way. But if you want to use a QThread for running QObjects with its event loop, the most simple way is not to subclass, and moveToThread. This is well explained

Re: [Interest] Qt laptop stickers

2014-01-13 Thread Bob Hood
On 1/13/2014 6:57 AM, Juergen Bocklage-Ryannel wrote: On 07.01.14 05:51, ??? ??? wrote: Hello. Does anyone have a Qt laptop stickers? Can you sell me some? Best regards, Nick ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QtThread

2014-01-13 Thread Etienne Sandré-Chardonnal
Thanks for the link! You are right, in fact only the moveToThread(this) approach should be really avoided. 2014/1/13 Sze Howe Koh szehowe@gmail.com To balance things out, here's a direct response to Etienne's first link: http://woboq.com/blog/qthread-you-were-not-doing-so-wrong.html

Re: [Interest] QtThread

2014-01-13 Thread Thiago Macieira
On segunda-feira, 13 de janeiro de 2014 11:35:12, Chaser wrote: Derive from QThread and moveToThread() are two correctly use-case of QThread. Just to be clear: those are two correct use-cases but they can't be used at the same time. Option 1: derive from QThread (and override run(), writing

Re: [Interest] Question about reading glsl shader source from a QResource using compression

2014-01-13 Thread Constantin Makshin
Presence and level of resource compression depends on command line parameters passed to the resource compiler. IIRC compression is disabled by default so all resources are stored as is unless you explicitly tell the resource compiler to compress them and correct way of retrieving resource data

Re: [Interest] Question about reading glsl shader source from a QResource using compression

2014-01-13 Thread Giuseppe D'Angelo
On 13 January 2014 13:25, Ola Røer Thorsen o...@silentwings.no wrote: In the documentation for QResource, it says that the data returned by r.data may be compressed. So is this way of reading the shader source code safe at all times? Shouldn't it check with r.isCompressed and if so,

[Interest] ios+audio

2014-01-13 Thread Nicola De Filippo
Hi, has someone a example on how play a audio file with IOS? I have setter QTPLUGIN in the pro, but in the qml when i start the Multimedia player i have mute and no message error. Suggest? Nicola ___ Interest mailing list

Re: [Interest] Qt5.2-android: Fail to debugging app in qtcreator 3.0

2014-01-13 Thread Liang Jian
After some investigation of QtActivityDelegate.java and the log file, I think the problem is: pong file /data/local/tmp/qt/debug-pong-org.qtproject.example.testAndroid was not created before time out. I also checked the file system in userdata-qemu.img of the android virtual device and