Re: [Interest] Example SSL Server based on Qt...

2016-01-06 Thread BRM via Interest
Thanks for the feedback. Advice and direction on this is welcome. I'm not sure if I'll move it towards the official Qt coding style or not - though I'd probably accept PRs that did. I just found in trying to put together the server for another project that there were no server-side Qt SSL example

Re: [Interest] Example SSL Server based on Qt...

2016-01-06 Thread Jason H
Don't take this the wrong way...  I've written production-level HTTP SSL servers in Qt before, and I've even requested/suggested there be a Qt C++ server framework. So take this as advice from a veteran.   Well, you should use QCoreApplication (drop the GUI), you never call startSeverEncrption(),

Re: [Interest] Questions about QtSensors and QCompass

2016-01-06 Thread Lorn Potter
Hi, On 05/01/16 21:25, maitai wrote: Hello, I am trying to use QCompass sensor on Android and iOS. It works well on Android (didn't test on iOS yet), but I have questions regarding calibration: The link in qt documentation is dead ( http://wiki.forum.qt.com/index.php/CS001671_-_Calibrating_th

Re: [Interest] Incorrect include paths in linux webkit build of QT5?

2016-01-06 Thread olivier barthelemy
I finished fixing includes earlier to allow make all in qtwidgets to finish. I had to change : - All include WebCore/*.h, JavaScriptCore/*.h, WebKit2/*.h by removing the first part. Those would not have worked no matter the include paths, since the headers were in subfolders of thoses - an inclu

Re: [Interest] Incorrect include paths in linux webkit build of QT5?

2016-01-06 Thread Thiago Macieira
On Wednesday 06 January 2016 18:39:23 Kandeler Christian wrote: > Thiago Macieira wrote: > > GCC searches the directory of the source with both <> and "". > > That's not true, as you can easily verify with a simple test program. You're right. > Searching inside the source file's directory or not

[Interest] Example SSL Server based on Qt...

2016-01-06 Thread BRM via Interest
Over the holidays I started working on a project where I wanted to use Qt's SSL Sockets for a client-server system.Looking around, I didn't find an example of using them on the *server* side, and the Qt Documentation just provides *client* side examples.So, I pulled some parts out of my project

Re: [Interest] Incorrect include paths in linux webkit build of QT5?

2016-01-06 Thread Kandeler Christian
Thiago Macieira wrote: > GCC searches the directory of the source with both <> and "". That's not true, as you can easily verify with a simple test program. Searching inside the source file's directory or not is (more or less) the whole difference between the two types of include statement, and

[Interest] anyone knows example code for implementation of a model property in custom quick item?

2016-01-06 Thread Gunnar Roth
Hello fellow qt users. It is an interesting thing, that I found no samples how to actually implement a model property using data from Qml ListModel. I only found https://github.com/dinusv/qml-gantt which has its own range model and a own QuickItem accessing

Re: [Interest] Incorrect include paths in linux webkit build of QT5?

2016-01-06 Thread Thiago Macieira
On Wednesday 06 January 2016 11:55:16 olivier barthelemy wrote: > OK, i think it is because those includes are supposed to be paths relative > to the cpp files. > But they are included with <> and not "", so there is -I. on the command > line to add the current directory to the search path. > HOWEV

Re: [Interest] What's the proper way to do custom QtActivity (android)

2016-01-06 Thread m...@rpzdesign.com
Look at: http://www.kdab.com/qt-android-episode-6/ and the other episodes. On 1/6/2016 8:31 AM, Jason H wrote: I'm not looking for a Android primer, but I am looking on a primer on how to get the Qt/QtCreator to play nice with a subclassed application and activity. Ideally, I'd like to add

[Interest] What's the proper way to do custom QtActivity (android)

2016-01-06 Thread Jason H
I'm not looking for a Android primer, but I am looking on a primer on how to get the Qt/QtCreator to play nice with a subclassed application and activity. Ideally, I'd like to add the .java files somewhere and get up and running. I've read http://doc.qt.io/qt-5/deployment-android.html http://do

Re: [Interest] Incorrect include paths in linux webkit build of QT5?

2016-01-06 Thread olivier barthelemy
OK, i think it is because those includes are supposed to be paths relative to the cpp files. But they are included with <> and not "", so there is -I. on the command line to add the current directory to the search path. HOWEVER sources are compiled as "gcc /path/to/file.cpp -I." So the -I. adds the

Re: [Interest] QLocalSocket bug?

2016-01-06 Thread Giuseppe D'Angelo
On Wed, Jan 6, 2016 at 9:07 AM, Etienne Sandré-Chardonnal wrote: > This was not really a complain but just a comment, since both classes have > nearly the same interface they could derive from a common one. To say it all, QAbstractSocket is deemed to be a mistake in Qt. There's no useful way of m

Re: [Interest] QLocalSocket bug?

2016-01-06 Thread Joerg Bornemann
On 05-Jan-16 17:20, Etienne Sandré-Chardonnal wrote: I can fix this by adding socket->isReadable() in the loop condition, but I am wondering if this is a QLocalSocket bug that should be filed. This sounds like a bug in the Windows implementation of QLocalSocket. Please file a bug with a small

[Interest] Incorrect include paths in linux webkit build of QT5?

2016-01-06 Thread olivier barthelemy
I am building Qt5.5.1 with the webkit support, and i stumble upon what seems to be wrong include paths in the sources files Example : I have headers in WebCore/A/B.h The build script adds -I WebCore/A for all A that contain headers However, source that include those headers include tham with the p

Re: [Interest] Qt5.6 not recognised by Visual Studio 2015

2016-01-06 Thread Kalinowski Maurice
> > I'm not saying Qt5Package shouldn't fix this problem - I've commented on > the page and CC'd the author on this email. But until they do there's no other > way to get Qt5 working with Visual Studio 2015 hence the need for a > workaround. > [Kalinowski Maurice] What feature are you using from

Re: [Interest] QLocalSocket bug?

2016-01-06 Thread Igor Mironchik
Hi, On 06.01.2016 11:07, Etienne Sandré-Chardonnal wrote: This was not really a complain but just a comment, since both classes have nearly the same interface they could derive from a common one. I could fix the canReadLine()==true issue by adding an isReadable() test, but the socket not disc

Re: [Interest] QLocalSocket bug?

2016-01-06 Thread Etienne Sandré-Chardonnal
This was not really a complain but just a comment, since both classes have nearly the same interface they could derive from a common one. I could fix the canReadLine()==true issue by adding an isReadable() test, but the socket not disconnecting from server side is more a problem. The QLocalSocket