Re: [Interest] Align text to top of Text

2017-03-28 Thread André Somers
Sent from my phone, please excuse my brevity > On 28 Mar 2017, at 21:14, Shantanu Tushar wrote: > > Hi Jason, > > Thanks for the quick reply! Have you used the negative topPadding technique > in practice? If yes did you use a fixed value or could you calculate it using > QFontMetrics? I ha

Re: [Interest] Is there a way to simulate serial port data?

2017-03-28 Thread Konrad Rosenbaum
Hi, On Tuesday 28 March 2017 13:23:01 Roland Hughes wrote: > I have to ask, why is it such a sin to have a stand alone program with a > null modem cable and mini-tester as a testing tool. I have been working > with serial ports off and on since the days of DOS 3.x and have always > tested in this

Re: [Interest] Align text to top of Text

2017-03-28 Thread Shantanu Tushar
Hi Jason, Thanks for the quick reply! Have you used the negative topPadding technique in practice? If yes did you use a fixed value or could you calculate it using QFontMetrics? Cheers, On Wed, Mar 29, 2017 at 12:36 AM, Jason Allen wrote: > You are positioning the text and the topmost left edg

Re: [Interest] Align text to top of Text

2017-03-28 Thread Jason Allen
You are positioning the text and the topmost left edge correctly, but also consider that depending on a font or character typed, not all characters take up the full available height. Characters like ` ' | / \ and " are sometimes above the height of latin letters, as are capital-case letters with a

[Interest] Align text to top of Text

2017-03-28 Thread Shantanu Tushar
Hi, I'm trying to align some text in a Text so that it exactly touches the left and top edges of the Text item. With the following- Rectangle { anchors { fill: parent; margins: 5 } border { width: 1; color: "red" } Text { anchors.fill: parent topPadding: 0 ve

Re: [Interest] Is there a way to simulate serial port data?

2017-03-28 Thread Roland Hughes
I have to ask, why is it such a sin to have a stand alone program with a null modem cable and mini-tester as a testing tool. I have been working with serial ports off and on since the days of DOS 3.x and have always tested in this manner. The first piece of code one writes on a project which ne

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-28 Thread Thiago Macieira
On terça-feira, 28 de março de 2017 09:39:41 PDT Thiago Macieira wrote: > On terça-feira, 28 de março de 2017 09:28:17 PDT Richard Moore wrote: > > ​There isn't a bug in Qt here. The server isn't transmitting the full > > chain > > as it's required to. You can bypass the error in the normal way if

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-28 Thread Thiago Macieira
On terça-feira, 28 de março de 2017 09:28:17 PDT Richard Moore wrote: > ​There isn't a bug in Qt here. The server isn't transmitting the full chain > as it's required to. You can bypass the error in the normal way if you > really need to - read the docs. I did get a cert-invalid error with GnuTLS,

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-28 Thread Richard Moore
On 28 March 2017 at 17:09, Thiago Macieira wrote: > Em terça-feira, 28 de março de 2017, às 08:02:46 PDT, Jan 'Koviš' Struhár > escreveu: > > On 03/28/2017 09:10 AM, Thiago Macieira wrote: > > > Em segunda-feira, 27 de março de 2017, às 23:58:32 PDT, Jan 'Koviš' > > > Struhár > > > > > > escreveu

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-28 Thread Thiago Macieira
Em terça-feira, 28 de março de 2017, às 08:02:46 PDT, Jan 'Koviš' Struhár escreveu: > On 03/28/2017 09:10 AM, Thiago Macieira wrote: > > Em segunda-feira, 27 de março de 2017, às 23:58:32 PDT, Jan 'Koviš' > > Struhár > > > > escreveu: > >> my mobile app using QNetworkAccessManager to access > >>

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-28 Thread Jan 'Koviš' Struhár
On 03/28/2017 09:10 AM, Thiago Macieira wrote: Em segunda-feira, 27 de março de 2017, às 23:58:32 PDT, Jan 'Koviš' Struhár escreveu: my mobile app using QNetworkAccessManager to access https://www.webnotes.cz That website isn't working. Tried curl in the command-line: That goes without asking

Re: [Interest] Cross-platform screen capture

2017-03-28 Thread Jérôme Godbout
Maybe not the best/easiest solution, but it would be free. You could use VLC stream desktop to file. Then use ffmpeg to crop the video to the wanted area. https://www.howtogeek.com/120202/how-to-record-your-desktop-to-a-file-or-stream-it-over-the-internet-with-vlc/ http://video.stackexchange.com/

Re: [Interest] QOpenGLWidget inside QDockWidget

2017-03-28 Thread Alexandre Ribeiro
Thanks, this solved it. I would probably end up sharing the context between all QOpenGLWidget so I guess your workaround is a permanent solution for this app. On Tue, Mar 28, 2017 at 9:02 AM, Laszlo Agocs wrote: > Hi, > > > Because it tears down and then reinitializes graphics resources when >

Re: [Interest] Is there a way to simulate serial port data?

2017-03-28 Thread Murphy, Sean
> First of all your parsing class should only do the parsing, so it > shouldn't derive from QSerialPort. > instead it should take a QSerialPort pointer as a parameter, eg: > QSerialPort port(...); > port.open(...) > Parser parser(&serialPort); > Result result = parser.parse(); > or > Parser parser;

Re: [Interest] Is there a way to simulate serial port data?

2017-03-28 Thread Konrad Rosenbaum
On Tue, March 28, 2017 00:54, Henry Skoglund wrote: > Hi, I faced a simular situation last summer, and I used this: > http://com0com.sourceforge.net/ > > Rgrds Henry > P.S. I think it only works on Windows, though. Correct. On Linux/Unix/MacOS you can use a simple pseudo TTY: write a small progra

Re: [Interest] QOpenGLWidget inside QDockWidget

2017-03-28 Thread Laszlo Agocs
Hi, Because it tears down and then reinitializes graphics resources when changing the associated top-level window. This does not explain the flicker, though. As a workaround try doing QCoreApplication::setAttribute(Qt:AA_ShareOpenGLContexts) before constructing the QApplication. See the se

Re: [Interest] Ignore SSL errors on Android 6.0+

2017-03-28 Thread Thiago Macieira
Em segunda-feira, 27 de março de 2017, às 23:58:32 PDT, Jan 'Koviš' Struhár escreveu: > my mobile app using QNetworkAccessManager to access https://www.webnotes.cz That website isn't working. Tried curl in the command-line: $ curl -v https://www.webnotes.cz * Rebuilt URL to: https://www.webnotes