Re: [Interest] Receiving audio through USB frame grabber and playing it

2016-08-11 Thread Nuno Santos
SampleType defines how each sample is represented, the min and max value. For instance, in my audio applications, I use floating point sample type because I wan’t to generate samples between -1 and 1. Working with a normalised value is a very convenient way of making calculations, but on some

Re: [Interest] Receiving audio through USB frame grabber and playing it

2016-08-11 Thread Anisha Kaul
Thanks for the response and apologies for my error. This morning I discovered that I was able to hear on 24 bit samples but not on 16 bit sample because I hadn't raised volume to its maximum. Now, with 16 bit samples I am able to hear the "buzzing sound". Nothing more than that. Now the settings

Re: [Interest] Receiving audio through USB frame grabber and playing it

2016-08-11 Thread Maurice Kalinowski
Have you considered converting manually between 16 and 24 bit samplesizes? Obviously you pass the wrong sample size to the output, and that one takes data as is as this is just a byte stream. That is why you need to check that either the formats are compatible or do a conversion. This is nothing

Re: [Interest] item edit on mouse over - was: dynamic widget creation in QScrollArea

2016-08-11 Thread Frank Rueter | OHUfx
So it appears the solution is to have the delegate emit it's closeEditor signal as shown below as well as have the view explicitly close the current editor before opening a new one. I hope there are no side effects to this but we will see... On 12/08/16 2:27 PM, Frank Rueter | OHUfx wrote: Qu

Re: [Interest] item edit on mouse over - was: dynamic widget creation in QScrollArea

2016-08-11 Thread Frank Rueter | OHUfx
Quick follow up (as usual): The problem is that the view's mouseMoveEvent fires faster than the MyMovie() widget's leaveEvent can trigger the emission of the closeEditor signal. In other words I have to somehow refactor the code to ensure that the current editor is closed before the new one is

Re: [Interest] item edit on mouse over - was: dynamic widget creation in QScrollArea

2016-08-11 Thread Frank Rueter | OHUfx
So I made some progress here: I am now using the QListView's mouseMoveEvent() to get the item under the mouse and edit() it: def mouseMoveEvent(self, event): '''Find item under mouse and pop it into edit mode''' index = self.indexAt(event.pos()) if index.isValid():

[Interest] debugger thread display

2016-08-11 Thread John Weeks
I'm working on a Macintosh running OS X 10.11.4, using Qt Creator 3.6.0. I have been trying to debug a crash in threaded code, but Qt Creator (or my debugger? It's lldb) won't cooperate fully. When the crash occurs, I see the stack trace for the crashed thread. I can choose another thread from t

Re: [Interest] Unicode code points in Vusual Studio. Output differs from MinGW

2016-08-11 Thread Thiago Macieira
On quinta-feira, 11 de agosto de 2016 19:53:54 PDT Mark Gaiser wrote: > Thank you for the clear options. > I was hoping for some magic compile flag to fix this on MSVC 2010, but > apparently i'm out of luck. Yeah, Microsoft added one, but it's coming 7 years too late for you. > The only option i

Re: [Interest] Unicode code points in Vusual Studio. Output differs from MinGW

2016-08-11 Thread Henry Skoglund
On 2016-08-11 19:53, Mark Gaiser wrote: On Thu, Aug 11, 2016 at 6:29 PM, Thiago Macieira mailto:thiago.macie...@intel.com>> wrote: On quinta-feira, 11 de agosto de 2016 11:40:46 PDT Mark Gaiser wrote: > Is there any way that i can use a string with unicode code points within > tr(...

Re: [Interest] Unicode code points in Vusual Studio. Output differs from MinGW

2016-08-11 Thread Mark Gaiser
On Thu, Aug 11, 2016 at 6:29 PM, Thiago Macieira wrote: > On quinta-feira, 11 de agosto de 2016 11:40:46 PDT Mark Gaiser wrote: > > Is there any way that i can use a string with unicode code points within > > tr(...) that works on MSVC 2010 (as that is my setup), but it would be > > great if it a

Re: [Interest] Unicode code points in Vusual Studio. Output differs from MinGW

2016-08-11 Thread Thiago Macieira
On quinta-feira, 11 de agosto de 2016 11:40:46 PDT Mark Gaiser wrote: > Is there any way that i can use a string with unicode code points within > tr(...) that works on MSVC 2010 (as that is my setup), but it would be > great if it also works under MSVC 2015 and MinGW. There's no way to make that

[Interest] Receiving audio through USB frame grabber and playing it

2016-08-11 Thread Anisha Kaul
> HI, > > Following is the re-producable example: > > **header file: > > #ifndef AUDIOOUTPUT > #define AUDIOOUTPUT > > #include > #include > #include > > class Output: public QObject > { > private: >

Re: [Interest] Qt 5.7 - iOS - module "QtGraphicalEffects" plugin "qtgraphicaleffectsplugin" not found

2016-08-11 Thread Nuno Santos
I have created the following bug report: https://bugreports.qt.io/browse/QTBUG-55259 > On 11 Aug 2016, at 14:05, Ben Lau wrote: > > > > On 11 August 2016 at 20:54, J-P Nurmi mailto:jpnu...@qt.io>> > wrote: >> On 11 Aug 2016, at 14:43, Ben Lau >

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-11 Thread Viktor Engelmann
The sweepline algorithm finds all intersection points in a set of lines and (IIRC) it has running time O(n*log(n)). I doubt that it is possible to do faster than that... Note: there are several different algorithms referred to as "sweepline algorithm". The sweepline is more of a general approach th

Re: [Interest] Qt 5.7 - iOS - module "QtGraphicalEffects" plugin "qtgraphicaleffectsplugin" not found

2016-08-11 Thread Ben Lau
On 11 August 2016 at 20:54, J-P Nurmi wrote: > On 11 Aug 2016, at 14:43, Ben Lau wrote: > > > I think so. I would suggest to add a new variable called "QML_SCAN_PATH" > for qmake. And let's qmlimportscanner scan those directory too. Moreover, > due to QTBUG-48480, it may also need a variable QML

Re: [Interest] Qt 5.7 - iOS - module "QtGraphicalEffects" plugin "qtgraphicaleffectsplugin" not found

2016-08-11 Thread J-P Nurmi
On 11 Aug 2016, at 14:43, Ben Lau mailto:xben...@gmail.com>> wrote: I think so. I would suggest to add a new variable called "QML_SCAN_PATH" for qmake. And let's qmlimportscanner scan those directory too. Moreover, due to QTBUG-48480, it may also need a variable QML_EXCLUDE_SCAN_PATH too. [QT

Re: [Interest] Qt 5.7 - iOS - module "QtGraphicalEffects" plugin "qtgraphicaleffectsplugin" not found

2016-08-11 Thread Ben Lau
I think so. I would suggest to add a new variable called "QML_SCAN_PATH" for qmake. And let's qmlimportscanner scan those directory too. Moreover, due to QTBUG-48480, it may also need a variable QML_EXCLUDE_SCAN_PATH too. [QTBUG-48480] Qt5QuickTest should not be linked in iOS target for non-unit t

Re: [Interest] Qt 5.7 - iOS - module "QtGraphicalEffects" plugin "qtgraphicaleffectsplugin" not found

2016-08-11 Thread Nuno Santos
Thanks Ben for sharing your experience. Don’t you think this behaviour should be improved? I think I will submit this a feature suggestion. > On 11 Aug 2016, at 11:58, Ben Lau wrote: > > > I think qmlimportscanner only scan QML file within the project directory > regardless of is it used / r

Re: [Interest] Qt 5.7 - iOS - module "QtGraphicalEffects" plugin "qtgraphicaleffectsplugin" not found

2016-08-11 Thread Ben Lau
I think qmlimportscanner only scan QML file within the project directory regardless of is it used / referred by .pro or resource file. All QML files in sibling directory will be ignored. I have got similar problem. So far I fix it by adding extra import statement in the main.qml . And leave a comm

[Interest] Unicode code points in Vusual Studio. Output differs from MinGW

2016-08-11 Thread Mark Gaiser
Hi, The following minimal code example demonstrates the issue (tested on Qt 5.6.1): #include #include #include int main(int, char **) { qDebug() << "tr:" << QObject::tr("Co\u00F6rdinaat"); qDebug() << "QString:" << QString("Co\u00F6rdinaat"); qDebug() << "(QDebug) std::string:" << QStri

[Interest] License of Qt Quick 2D Renderer in Qt 5.8

2016-08-11 Thread qtinterestmdk . 3 . maischus
Hello, According to the following new feature will be added in Qt 5.8 "Integrated the software backend (previously known as the Qt Quick 2D Renderer)" Currently the QtQuick 2D Renderer is licensed under GPL and Commercial. Once it is integrated as menti

Re: [Interest] Thoughts on a 'proper' (or standard) file/io API for QML?

2016-08-11 Thread Vlad Stelmahovsky
Sorry for offtop but.. what the reason to use cross platform, native framework and implement file io via JS? On Wed, Aug 10, 2016 at 10:36 PM, Alejandro Exojo wrote: > On Wednesday 10 August 2016 17:09:17 Jason H wrote: > > I know it's not a normal thing, but occasionally in QML we need to acce