Re: [Interest] QLocalSocket bug?

2016-01-05 Thread jhihn
-Original message- Sent: Wednesday, 06 January 2016 at 01:51:46 From: "Thiago Macieira" To: interest@qt-project.org Subject: Re: [Interest] QLocalSocket bug? On Tuesday 05 January 2016 18:49:44 Jason H wrote: > > It seems that win32 implementation of QLocalSocket is not so good, there > >

Re: [Interest] QLocalSocket bug?

2016-01-05 Thread Thiago Macieira
On Tuesday 05 January 2016 18:49:44 Jason H wrote: > > It seems that win32 implementation of QLocalSocket is not so good, there > > are many issues which prevent plain replacement of QTcpServer/Socket by > > QLocalServer/Socket > Why can't you just connect through loopback interface? (127.0.0.1) B

Re: [Interest] Context ambiguities when exposing a Qt Stringlist to QML

2016-01-05 Thread Jason H
The line "The QML engine provides automatic type conversion between QVariantList and _javascript_ arrays, and between QVariantMap and _javascript_ objects." Is not to be missed. It's pretty awesome stuff.     Sent: Tuesday, January 05, 2016 at 2:06 PM From: "Dmitry Volosnykh" To: willemfergu...@z

Re: [Interest] Qt 5.5.1+ Android Activity Theme & OpenGL

2016-01-05 Thread Jason H
> Sent: Tuesday, January 05, 2016 at 1:33 PM > From: "mark diener" > To: "Ben Lau" > Cc: "interest@qt-project.org" , BogDan > > Subject: Re: [Interest] Qt 5.5.1+ Android Activity Theme & OpenGL > > Ben: > > Thanks for the link. > > I am finding that putting a white.png file for the > androi

Re: [Interest] Handle frames and web forms with QWebEngine

2016-01-05 Thread NoRulez
I played a little bit with JavaScript and QWebChannel but I can't get it to work (I'm not familiar with JavaScript) which means that I tried to figure out which frame is created and trigger a signal from within JavaScript. i think the parsing stuff is easier with regex in c++. Could someone pleas

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

2016-01-05 Thread Tom Isaacson
> Yes, it happened for a reason ;) > > The idea is to synchronize settings between classic and WinRT applications. > The change is here: https://codereview.qt-project.org/#/c/124917/ > > If Qt5Package is not able to follow includes, then that should be fixed as it > is likely to break elsewhere a

Re: [Interest] Context ambiguities when exposing a Qt Stringlist to QML

2016-01-05 Thread Dmitry Volosnykh
Documentation states: "There are two ways in which such sequences can be exposed to QML: as a Q_PROPERTY of the given sequence type; or as the return type of a Q_INVOKABLE method." Nothing is being said

[Interest] Context ambiguities when exposing a Qt Stringlist to QML

2016-01-05 Thread Willem Ferguson
Here are QML and C++ snippets. The root context provides a context to the top-level QML rectangle. But the QStringList is required by the grandchild of the top-level rectangle. I suspect the context for exposing the QStringList is inappropriate. What is the correct approach here? C++: int

Re: [Interest] Qt 5.5.1 qmath.h redefines math.h macros with VS2013

2016-01-05 Thread Allan Sandfeld Jensen
On Tuesday 05 January 2016, Mike Jackson wrote: > We just switched up to Qt 5.5.1 for our project and now we are getting the > following warnings through out our code base: > > > C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(1303) > : warning C4005: 'M_2_SQRTPI' : macro re

Re: [Interest] Qt 5.5.1+ Android Activity Theme & OpenGL

2016-01-05 Thread mark diener
Ben: Thanks for the link. I am finding that putting a white.png file for the android.app.splash_screen_drawable in manifest works best. That allows for selection of the opengl initial surface. The theme allows for pre-opengl display to the user. This should be default behavior and adjustable i

[Interest] Focus and synthetic keyboard events with QQuickWindow

2016-01-05 Thread Velkan S
Hi, QQuickWindow is created from QQuickRenderControl and used as GUI overlay for an application. Input event loop is outside of Qt (it's SDL), so the events are sent manually through QCoreApplication::sendEvent. Injecting mouse with "QCoreApplication::instance()->sendEvent(quickWindow, event)" wo

Re: [Interest] QLocalSocket bug?

2016-01-05 Thread Jason H
> It seems that win32 implementation of QLocalSocket is not so good, there are > many issues which prevent plain replacement of QTcpServer/Socket by > QLocalServer/Socket Why can't you just connect through loopback interface? (127.0.0.1) ___ Interest

Re: [Interest] QLocalSocket bug?

2016-01-05 Thread Etienne Sandré-Chardonnal
I am under windows (mingw) > He asked why canReadLine() always returns true when readLine() invokes in > the loop, so the loop is infinite... Execution order doesn't explain it. > > Yes, exactly. When the socket is closed, a canReadLine() or bytesAvailable() reading loop while run indefinitely.

Re: [Interest] QLocalSocket bug?

2016-01-05 Thread Igor Mironchik
On 05.01.2016 20:18, Jason H wrote: Hi, I am adapting existing code from QTcpSocket to QLocalSocket (The TCP code was used for distributing computations over a network, but since I also want to separate the local computation in a sub-process, I'm using the TCP > code for IPC using QLocalSo

Re: [Interest] Qt 5.5.1+ Android Activity Theme & OpenGL

2016-01-05 Thread Ben Lau
Hi Mark, Please check the step 3 in this article:. https://medium.com/@benlaud/complete-guide-to-make-a-splash-screen-for-your-qml-android-application-567ca3bc70af#.yatvhxgqp On 5 January 2016 at 21:57, mark diener wrote: > Bogdan: > > Thanks for your answers on the previous gradle issues. >

Re: [Interest] Qt 5.5.1+ Android Activity Theme & OpenGL

2016-01-05 Thread Jason H
> Bogdan: > > Thanks for your answers on the previous gradle issues. > > During your work on QtActivity, did you ever try to create use a custom theme? > > The native Splash screen for Qt is rooted in a java function, but that > function executes way AFTER java inflation. > > So attaching the

Re: [Interest] QLocalSocket bug?

2016-01-05 Thread Jason H
> Hi, >  I am adapting existing code from QTcpSocket to QLocalSocket (The TCP code > was used for distributing computations over a network, but since I also want > to separate the local computation in a sub-process, I'm using the TCP > code > for IPC using QLocalSocket). >  On the server side, t

Re: [Interest] QLocalSocket bug?

2016-01-05 Thread Igor Mironchik
Hi, What are you platform on? On 05.01.2016 19:20, Etienne Sandré-Chardonnal wrote: Hi, I am adapting existing code from QTcpSocket to QLocalSocket (The TCP code was used for distributing computations over a network, but since I also want to separate the local computation in a sub-process, I

[Interest] QLocalSocket bug?

2016-01-05 Thread Etienne Sandré-Chardonnal
Hi, I am adapting existing code from QTcpSocket to QLocalSocket (The TCP code was used for distributing computations over a network, but since I also want to separate the local computation in a sub-process, I'm using the TCP code for IPC using QLocalSocket). On the server side, the readyRead() si

Re: [Interest] Qt 5.5.1 qmath.h redefines math.h macros with VS2013

2016-01-05 Thread Martijn Buijs
I'm not sure if it's really the same problem, but it looks similar to the problem described in this bug report: https://bugreports.qt.io/browse/QTBUG-45935 On 5 January 2016 at 15:24, Mike Jackson wrote: > We just switched up to Qt 5.5.1 for our project and now we are getting the > following war

[Interest] Qt 5.5.1 qmath.h redefines math.h macros with VS2013

2016-01-05 Thread Mike Jackson
We just switched up to Qt 5.5.1 for our project and now we are getting the following warnings through out our code base: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(1303) : warning C4005: 'M_2_SQRTPI' : macro redefinition C:\DREAM3D_SDK\Qt5.5.1\5.5\msvc2013_64\include\

[Interest] Qt 5.5.1+ Android Activity Theme & OpenGL

2016-01-05 Thread mark diener
Bogdan: Thanks for your answers on the previous gradle issues. During your work on QtActivity, did you ever try to create use a custom theme? The native Splash screen for Qt is rooted in a java function, but that function executes way AFTER java inflation. So attaching the custom theme to the Q

Re: [Interest] Using std::string in android projects

2016-01-05 Thread Thiago Macieira
On Monday 04 January 2016 23:11:09 Jason H wrote: > Well there is a library that depends on the std::string class. I then use > std::string to shuffle data into and out of the library, using > QString/QByteArray as appropriate. stlport, unlike libc++, is NOT able to be loaded into the same process

[Interest] Questions about QtSensors and QCompass

2016-01-05 Thread maitai
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_the_magnetometer_sensor ). Does anyon

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

2016-01-05 Thread Kalinowski Maurice
> > The same problem existed before and after VS2015 Update 1. Also, the > extention recognises Qt 5.5.1 with no problem so I was pretty sure it was a > change in Qt 5.6.0 that caused this problem. I searched around and > eventually found that in > C:\Qt\Qt5.6.0\5.6\msvc2015\mkspecs\common\msvc-d

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

2016-01-05 Thread Tom Isaacson
The same problem existed before and after VS2015 Update 1. Also, the extention recognises Qt 5.5.1 with no problem so I was pretty sure it was a change in Qt 5.6.0 that caused this problem. I searched around and eventually found that in C:\Qt\Qt5.6.0\5.6\msvc2015\mkspecs\common\msvc-desktop.conf