[Interest] Audio file metadata?

2015-06-03 Thread John Weeks
Does anyone know if it's possible to use QAudio to get metadata from an audio file? Info like the channel layout or embedded comments? -John Weeks ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Audio file metadata?

2015-06-03 Thread Sze Howe Koh
Hi, On 4 June 2015 at 07:13, John Weeks j...@wavemetrics.com wrote: Does anyone know if it's possible to use QAudio to get metadata from an audio file? Info like the channel layout or embedded comments? -John Weeks Not QAudio. See QMetaDataReaderControl instead:

Re: [Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Gian Maxera
Hello Federico, the problem is that the img tag inside the description has been escaped :-( So, I cannot access it using a query path :-( If you look at the content of description so can see that instead of having: descriptionimg src”…” … /description I have the image escaped: descriptionlt;img

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Nuno Santos
In my case I have a related app which opens the plugin. The host provides a window handle to the plugin. I was trying to make that handle into a QWidget with the following code: MyWindow::MyWindow(void* ptr) : QWidget(0) { HWND w = (HWND) ptr; setGeometry(QRect(0,0,640,480));

Re: [Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Federico Buti
Oh. I thought it was an issue related to my mail. :) I don't know If it is possible to apply some kind of transformations over the XML or if there is a specific way to handle this case. Depending on the way you are you receive the full XML, you can try to call a JS function to polish it via the

Re: [Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Federico Buti
​Hi Gianluca, depending on the full XML you can query for the description tag and than query for the first img tag with [1], something like this: XmlListModel { id: model query: (/path/to/description/img)[1] XmlRole { name: img; query:

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Nuno Santos
Bo, Is it possible that you can provide further details about this technic? Do you think this technic will also be possible on Mac? My window content will be Qml. Initially my approach was starting a QQmlApplicationEngine. Now, I was considering using a QWidget to takeover the give pointer

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Bo Thorsen
Den 03-06-2015 kl. 12:35 skrev Nuno Santos: Thanks for sharing your code. I will try and give some feedback. Any thoughts regarding the initial approach? Is there any reason for you not having followed that path? My application inserts an overlay over a complete unrelated application (the

Re: [Interest] Modal busyIndicator in Android

2015-06-03 Thread Rutledge Shawn
On 3 Jun 2015, at 04:07, Federico Buti bacaro...@gmail.com wrote: Hi list, in the attempt to look as native as possible, I've defined a QML busy indicator for Android as follows: Dialog { property alias text: labelWorking.text standardButtons: StandardButton.NoButton ...

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Hamish Moffatt
On 03/06/15 16:56, Nuno Santos wrote: Hi, When we start a new QGuiApplication, it handles the Window creation on each platform. Now imagine that someone would give us a window ref and we wanted to put our Qt application running on it. Is this possible? I’m building a plugin for an

[Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Gian Maxera
Hello, I have an rss feed coming from Tumblr blog page. The xml of the feed has into description a lot of html content that I want to remove and keep only the first image I found. For example, this is one of the content into description tag: descriptionlt;img

[Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Nuno Santos
Hi, When we start a new QGuiApplication, it handles the Window creation on each platform. Now imagine that someone would give us a window ref and we wanted to put our Qt application running on it. Is this possible? I’m building a plugin for an host program that provides the window for the

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Bo Thorsen
Den 03-06-2015 kl. 08:56 skrev Nuno Santos: When we start a new QGuiApplication, it handles the Window creation on each platform. Now imagine that someone would give us a window ref and we wanted to put our Qt application running on it. Is this possible? I’m building a plugin for an

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Nuno Santos
Hamish, Thanks for you reply. Create method exists but it's protected. From what I have been googling around this is something new in Qt 5. Previous version seem to had this method public. In order to access it, I have subclassed QWidget. In the constructor of the window i'm passing the

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Nuno Santos
Bo, Thanks for sharing your code. I will try and give some feedback. Any thoughts regarding the initial approach? Is there any reason for you not having followed that path? Regards, Nuno On 03 Jun 2015, at 11:15, Bo Thorsen b...@vikingsoft.eu wrote: Hi Nuno, Den 03-06-2015 kl. 11:59

[Interest] Recent Qt5 does not compile with mingw64

2015-06-03 Thread Guido Seifert
Hi, it is not my favourite platform, but I try it from time to time. :-) Fairly recent Qt5: commit 4fc367abe95ee78166067047d0f229bba9991956 Author: Qt Submodule Update Bot qt_submodule_update_...@ovi.com Date: Sat May 30 22:33:04 2015 +0300 Change-Id:

Re: [Interest] Modal busyIndicator in Android

2015-06-03 Thread Federico Buti
Thanks for the insight. I've solved as you suggested: Dialog { property alias text: labelWorking.text contentItem: Rectangle { radius: 3 * Params.scaleFactor width: layout.implicitWidth * 1.2 height: busy.implicitHeight * 1.2 RowLayout {

Re: [Interest] Extract only src attribute of an image tag into XmlRole with XPath functions

2015-06-03 Thread Gian Maxera
Thank you for the suggestions. I resolved passing the full description to a C++ slot on which I used the full power of QRegExp to retrieve what I want. Thanks, Gianluca. On 3 Jun 2015, at 12:11, Federico Buti bacaro...@gmail.com wrote: Oh. I thought it was an issue related to my mail. :)

Re: [Interest] Showing QGuiApplication/QML application on a given HWND ref.

2015-06-03 Thread Nuno Santos
Hey Bo, Just wanted to share with you some progress. Actually Qt makes it really simple. I was amazed I could do it with a just 5 lines of code. (Qt ROCKS!) Right now, I just have a problem. The plugin window opens and closes perfectly. But once open, if I delete the plug in from the host

Re: [Interest] Recent Qt5 does not compile with mingw64

2015-06-03 Thread Guido Seifert
Ooookay... the QSharedMemory problem I can work around by not compiling the examples: -no-compile-examples. But then much later I get: .moc/debug/moc_context3d_p.cpp:1935:16: error: 'WINBOOL' is not a member of 'QtCanvas3D::CanvasContext' 455, uint(QtCanvas3D::CanvasContext::WINBOOL),