[Interest] How to scale/transform GUI for screens with wide pixels (non-square)

2016-04-18 Thread Callum Coe
I've an embedded device with a physical screen resolution of 800 x 480, but the pixels themselves are actually wider than they are high. The entire GUI therefore appears stretched, so it looks like a 800 x 480 GUI stretched to fill 800 x 520 screen. How am I best to handle this, so my GUI does

Re: [Interest] Cellular Radio information?

2016-04-18 Thread Lorn Potter
On 19/04/16 05:23, Jason H wrote: > Is there a way to access the radio info (dB, SNR) or even just overall data > connection quality using Qt? > > I know there is a Radio QML type, but this seems to be FM broadcast radio. In the unreleased QtSystems module in QtSystemInfo there is something li

[Interest] Cellular Radio information?

2016-04-18 Thread Jason H
Is there a way to access the radio info (dB, SNR) or even just overall data connection quality using Qt? I know there is a Radio QML type, but this seems to be FM broadcast radio. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project

Re: [Interest] Replacement for Qt Script

2016-04-18 Thread Jason H
? > > > > If MyStruct is just a JS object, then just use JS. function MyStruct(){ > return {"x": 100, "y": 100}; }; var myStruct = new MyStruct(); > > You only need createObject when you are creating an object defined in C++ > or dynamic object from QML. > > That is my rub here. These are

Re: [Interest] Replacement for Qt Script

2016-04-18 Thread Ian Geiser
On Mon, 18 Apr 2016 11:06:59 -0400 Jason H wrote > ttps://forum.qt.io/topic/52306/qt-5-5-qt-script-deprecated-what-is-replacement/12 > > > > I saw this thread, but it did not seem to offer a clear detail other than > > to use QJSEngine and QJSValue directly. Specifically I use

Re: [Interest] Replacement for Qt Script

2016-04-18 Thread Jason H
ttps://forum.qt.io/topic/52306/qt-5-5-qt-script-deprecated-what-is-replacement/12 > > I saw this thread, but it did not seem to offer a clear detail other than to > use QJSEngine and QJSValue directly. Specifically I use > qScriptRegisterMetaType very heavy to add custom types. I know if I am

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Jason H
I looked into Micheal's solution and it's clever. However I would try a few things: 1. Use QImage's QImage::Format_RGB888, and use scanLine() to dump the image line by line to stdout. (Scanline is so much faster) 2. Try to paralellize it. Perhaps you have X cores, start X processes, offset each

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 10:00 AM, Jason H wrote: > I did something like this a long time ago in QML (Before Qt3D, QtQuick 1): > 1. There is some kind of frame advance, so you set up the animations as > you want, then you start the animation and render the first frame to an > image. Then call fram

Re: [Interest] Replacement for Qt Script

2016-04-18 Thread Ian Geiser
On Mon, 18 Apr 2016 09:40:12 -0400 Scott Aron Bloom wrote > The forum had a great thread on this > > https://forum.qt.io/topic/52306/qt-5-5-qt-script-deprecated-what-is-replacement/12 I saw this thread, but it did not seem to offer a clear detail other than to use QJSEngine a

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Jason H
I did something like this a long time ago in QML (Before Qt3D, QtQuick 1): 1. There is some kind of frame advance, so you set up the animations as you want, then you start the animation and render the first frame to an image. Then call frame advance and get the next frame, repeat. 2. Then use FFM

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Sean Harmer
On Monday 18 April 2016 09:28:00 Andy wrote: > On Mon, Apr 18, 2016 at 9:05 AM, Sean Harmer wrote: > > Hi, > > > > I think it's possible, although it's not an out of the box feature yet, as > > Harald pointed out. > > > > Have a look into this kind of approach: > > > > * Implement something sim

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Sean Harmer
On Monday 18 April 2016 15:46:14 Harald Vistnes wrote: > If anyone try out Sean's suggestion and get it to work, it would be great > it they share an example so we don't all have to reinvent the wheel :) Or even better, contribute it to Qt 3D so everyone can benefit from it out of the box. :) Ch

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Harald Vistnes
If anyone try out Sean's suggestion and get it to work, it would be great it they share an example so we don't all have to reinvent the wheel :) Harald 2016-04-18 15:28 GMT+02:00 Andy : > On Mon, Apr 18, 2016 at 9:05 AM, Sean Harmer wrote: > >> Hi, >> >> I think it's possible, although it's no

Re: [Interest] Replacement for Qt Script

2016-04-18 Thread Scott Aron Bloom
The forum had a great thread on this https://forum.qt.io/topic/52306/qt-5-5-qt-script-deprecated-what-is-replacement/12 -Original Message- From: Interest [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Ian Geiser Sent: Monday, April 18, 2016 5:36 AM To:

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 9:05 AM, Sean Harmer wrote: > Hi, > > I think it's possible, although it's not an out of the box feature yet, as > Harald pointed out. > > Have a look into this kind of approach: > > * Implement something similar to the Scene3DItem that allows to embed Qt 3D > into a Qt Qu

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Sean Harmer
Hi, I think it's possible, although it's not an out of the box feature yet, as Harald pointed out. Have a look into this kind of approach: * Implement something similar to the Scene3DItem that allows to embed Qt 3D into a Qt Quick 2 scene * This requires using a little bit of private (for now

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 8:57 AM, Michael Sué wrote: > Hi, > > You may be able to use ffmpeg (the program not the library) via pipe as > described in the "writing section" here: > > > http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/ > > They use Python but

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Ola Røer Thorsen
2016-04-18 14:38 GMT+02:00 Andy : > On Mon, Apr 18, 2016 at 3:26 AM, Harald Vistnes > wrote: > >> Hi Andy, >> >> An alternative is to use the FFMPEG encoding library instead of the >> command line tools. Then you can pass each frame to the video encoder as >> you generate it without writing them

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Michael Sué
Hi, You may be able to use ffmpeg (the program not the library) via pipe as described in the "writing section" here: http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/ They use Python but it should work with C++ as well, I assume. And using the program s

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 3:26 AM, Harald Vistnes wrote: > Hi Andy, > > An alternative is to use the FFMPEG encoding library instead of the > command line tools. Then you can pass each frame to the video encoder as > you generate it without writing them all to disk first. > This is non-GPL softwar

[Interest] Replacement for Qt Script

2016-04-18 Thread Ian Geiser
Greetings, I have used QtScript in a non-gui application before to write plugins for the application. This was really slick and worked well. I am working on a new application and wish again to use QtScript in a non-gui context. I am given the impression QtScript is deprecated and it is to be

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Andy
On Mon, Apr 18, 2016 at 2:51 AM, Bo Thorsen wrote: > Den 18-04-2016 kl. 05:46 skrev Andy: > >> Goal: generate video with a user-specified resolution, frame rate, & >> container/codec format from an animation in my Qt3D window >> >> (Disclaimer: I've never worked with video files before!) >> >> As

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Harald Vistnes
Hi Andy, An alternative is to use the FFMPEG encoding library instead of the command line tools. Then you can pass each frame to the video encoder as you generate it without writing them all to disk first. The natural way to generate the QImages would be to render to an offscreen surface of the d