Re: [Interest] [Development] Executing PowerShell command with quotes using QProcess

2014-04-03 Thread Oswald Buddenhagen
On Thu, Apr 03, 2014 at 08:34:20AM +0800, Sze Howe Koh wrote: > On 3 April 2014 06:23, Thiago Macieira wrote: > > Nor on Windows's prompt: > > C:\>echo """hello""" > > """hello""" > > > > That commit has been there since the Qt public history started. It's even > > documented as such (I had to loo

Re: [Interest] [Development] Executing PowerShell command with quotes using QProcess

2014-04-03 Thread Koehne Kai
> -Original Message- > [...] > it's not windows-only. > the quoting mechanism is inspired by how *some* windows applications > interpret quoting. but it is generally speaking just stupid. > when i finally get to it, i want to deprecate this custom single-string mode > in > favor of accep

Re: [Interest] Executing PowerShell command with quotes using QProcess

2014-04-03 Thread Joerg Bornemann
On 03-Apr-14 02:34, Sze Howe Koh wrote: >> Nor on Windows's prompt: >> C:\>echo """hello""" >> """hello""" Checking arguments with the echo shell built-in on Windows is not a good idea. It behaves (not even) slightly different from real executables. Create an executable that prints its argument

Re: [Interest] Executing PowerShell command with quotes using QProcess

2014-04-03 Thread Damian Ivanov
one could use "cmd /c echo hello" at least I do so, or this somehow bad? 2014-04-03 12:36 GMT+03:00 Joerg Bornemann : > On 03-Apr-14 02:34, Sze Howe Koh wrote: > >>> Nor on Windows's prompt: >>> C:\>echo """hello""" >>> """hello""" > > Checking arguments with the echo shell built-in on Windows is

Re: [Interest] Executing PowerShell command with quotes using QProcess

2014-04-03 Thread Joerg Bornemann
On 03-Apr-14 12:28, Damian Ivanov wrote: > one could use "cmd /c echo hello" at least I do so, or this somehow bad? You can use that if you're completely sure that echo prints its arguments verbatim. I for one wouldn't be surprised if there's some weird edge case where it transforms the passed

Re: [Interest] [Development] Executing PowerShell command with quotes using QProcess

2014-04-03 Thread Oswald Buddenhagen
On Thu, Apr 03, 2014 at 01:28:02PM +0300, Damian Ivanov wrote: > one could use "cmd /c echo hello" at least I do so, or this somehow bad? > it's a double-fail, because in addition to the weird echo behavior, you also have the even more weird cmd behavior (which can be modified further with the /s

Re: [Interest] Creating a video feed or overlay

2014-04-03 Thread Josiah Bryan
Lopes - I did a lot of live video work using Qt in a project I have on Google code: https://code.google.com/p/livepro/ I havn't tried it with Qt 5+, but it was all with Qt 4.8. Let me know if you have any questions on that if you actually do look at any of the code. Thanks! -Josiah On Mon, Ma

Re: [Interest] [Development] Executing PowerShell command with quotes using QProcess

2014-04-03 Thread Thiago Macieira
Em qui 03 abr 2014, às 10:12:27, Oswald Buddenhagen escreveu: > the quoting mechanism is inspired by how *some* windows applications > interpret quoting. but it is generally speaking just stupid. > when i finally get to it, i want to deprecate this custom single-string > mode in favor of accepting

Re: [Interest] Creating a video feed or overlay

2014-04-03 Thread Jason H
I've had mixed experiences with overlays, it all depends on the platform and where you insert yourself into it. (DirectX is bad) I would try to avoid capturign/displaying QImages and QPixmaps. I'd try to keep it all in YUV, includign your overlay, for easy merging that can be done on a OpenCL im

Re: [Interest] Qt 5.3 Beta - Multicast receiving only first packet.

2014-04-03 Thread Ryan Kroetch
After doing some testing on linux with Qt5.3-beta, it looks like the problem is limited to Windows. The same program receives multiple readyRead signals when compiled with Qt5.2.1, but only receives one when compiled with Qt5.3-beta mingw-4.8.2 The multicast receive works as expected in linux rega

[Interest] building a retina QPixmap from a non-retina QImage

2014-04-03 Thread Paul Miller
I'm algorithmically building a QImage at double resolution, and I want to build a retina-capable QPixmap from it. Say for instance I want to make a retina-capable image at 100x100 logical pixels. So I create a QImage at 200x200, draw some stuff into, then I want to convert it to a QPixmap at 10