Re: [Interest] Lifetime of QNetworkReply from QNetworkAccessManager

2018-01-29 Thread Thiago Macieira
That's the kind of thing that Valgrind would catch, provided of course that nothing resets the pointer value. On segunda-feira, 29 de janeiro de 2018 23:36:43 PST Tom Isaacson wrote: > Nothing. But Visual Studio says the QNetworkReply pointer is set to > 0xfeeefeee so someone's freeing it. > On s

Re: [Interest] QWebView vs. QWebEngine

2018-01-29 Thread Walter Stefan
Okay, thanks. This could have been written more clear on the webpage 😊 From: Jean-Michaël Celerier [mailto:jeanmichael.celer...@gmail.com] Sent: Montag, 29. Jänner 2018 19:57 To: Walter Stefan Cc: Konstantin Tokarev ; interest@qt-project.org Subject: Re: [Interest] QWebView vs. QWebEngine > At t

Re: [Interest] Lifetime of QNetworkReply from QNetworkAccessManager

2018-01-29 Thread Tom Isaacson
Nothing. But Visual Studio says the QNetworkReply pointer is set to 0xfeeefeee so someone's freeing it. On segunda-feira, 29 de janeiro de 2018 20:06:37 PST Tom Isaacson wrote: > Ah thanks! Now I just have to figure out why calling deleteLater() is > causing a crash... What does valgrind say? -

Re: [Interest] Lifetime of QNetworkReply from QNetworkAccessManager

2018-01-29 Thread Thiago Macieira
On segunda-feira, 29 de janeiro de 2018 20:06:37 PST Tom Isaacson wrote: > Ah thanks! Now I just have to figure out why calling deleteLater() is > causing a crash... What does valgrind say? -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Cen

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread Nikos Chantziaras
On 29/01/18 19:56, David M. Cotter wrote: You can just use this: http://mxe.cc hmm this appears to allow you to develop on MacOS X are you saying that this lets you cross-compille to Windows? ie: build on MacOS the actual windows binary? Yes. That's exactly what it does. but i don’t

Re: [Interest] Lifetime of QNetworkReply from QNetworkAccessManager

2018-01-29 Thread Tom Isaacson
Ah thanks! Now I just have to figure out why calling deleteLater() is causing a crash... On 30/01/18, 4:48 PM, "Jason H" wrote: > Sent: Monday, January 29, 2018 at 10:44 PM > From: "Tom Isaacson" > To: "Interest@qt-project.org" > Subject: [Interest] Lifetime of QNetw

Re: [Interest] Lifetime of QNetworkReply from QNetworkAccessManager

2018-01-29 Thread Jason H
> Sent: Monday, January 29, 2018 at 10:44 PM > From: "Tom Isaacson" > To: "Interest@qt-project.org" > Subject: [Interest] Lifetime of QNetworkReply from QNetworkAccessManager > > If I call a function like QNetworkAccessManager::head() with a > QNetworkRequest I get a pointer to a QNetworkReply

[Interest] Lifetime of QNetworkReply from QNetworkAccessManager

2018-01-29 Thread Tom Isaacson
If I call a function like QNetworkAccessManager::head() with a QNetworkRequest I get a pointer to a QNetworkReply. But who's responsible for clearing up the QNetworkReply? Is it me, is it parented to the QNetworkReply, is it parented to the QNetworkAccessManager? If the latter, if the QNetworkAc

Re: [Interest] QML Rotation sensor readings [images]

2018-01-29 Thread Jason H
https://developer.android.com/guide/topics/sensors/sensors_position.html "Pitch (degrees of rotation about the x axis). This is the angle between a plane parallel to the device's screen and a plane parallel to the ground. If you hold the device parallel to the ground with the bottom edge closest

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread David M. Cotter
> On Jan 29, 2018, at 5:15 PM, Christian Gagneraud wrote: > > On 30/01/2018 6:56 AM, David M. Cotter wrote: >>> You can just use this: >>> >>> http://mxe.cc >> hmm >> this appears to allow you to develop on MacOS X >> are you saying that this lets you cross-compille to Windows? >> ie: build on

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread Christian Gagneraud
On 30/01/2018 6:56 AM, David M. Cotter wrote: You can just use this: http://mxe.cc hmm this appears to allow you to develop on MacOS X are you saying that this lets you cross-compille to Windows? ie: build on MacOS the actual windows binary? but i don’t expect it can debug windows (remot

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread David M. Cotter
> On Jan 29, 2018, at 4:36 PM, Konstantin Tokarev wrote: > > Wine allows running Windows binaries without having actual Windows. > But it can have bugs sometimes. that’s not what i mean. i’m writing windows software, to run on windows. (but i want to use my mac to do it, currently i use Parall

Re: [Interest] QML Rotation sensor readings [images]

2018-01-29 Thread Jason H
I have continued to search on how to rectify this, does anyone have any experience with the rotation sensor 2-readings issue? > Sent: Sunday, January 28, 2018 at 3:34 PM > From: "Jason H" > To: "Jason H" > Cc: "interestqt-project.org" > Subject: Re: [Interest] QML Rotation sensor readings [im

Re: [Interest] How to make a looping element?

2018-01-29 Thread Jason H
> Sent: Monday, January 29, 2018 at 5:53 PM > From: "Sze Howe Koh" > To: "Jason H" > Cc: "interestqt-project.org" > Subject: Re: [Interest] How to make a looping element? > > On 30 January 2018 at 03:07, Jason H wrote: > > > > This is more like a rotation.. I'm looking for the other kind of r

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread Konstantin Tokarev
29.01.2018, 20:57, "David M. Cotter" : >>  You can just use this: >> >>   http://mxe.cc > > hmm > > this appears to allow you to develop on MacOS X > > are you saying that this lets you cross-compille to Windows? > > ie: build on MacOS the actual windows binary? > > but i don’t expect it can debu

Re: [Interest] How to make a looping element?

2018-01-29 Thread Sze Howe Koh
On 30 January 2018 at 03:07, Jason H wrote: > > This is more like a rotation.. I'm looking for the other kind of rotation > where bearing % 360 can go from 359 to 1, without sweeping backwards while > animating the sweep. Rather than sweep, I'd prefer to seek > 090180270360 > -

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread Thiago Macieira
On segunda-feira, 29 de janeiro de 2018 12:53:21 PST René J. V. Bertin wrote: > Thiago Macieira wrote: > > The plugins aren't unloaded when you call unload(), but they are unloaded > > when the application exits. There's no way to avoid that. > > I guess not, no, though I'm not sure if Qt has do d

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread René J . V . Bertin
Thiago Macieira wrote: > The plugins aren't unloaded when you call unload(), but they are unloaded when > the application exits. There's no way to avoid that. I guess not, no, though I'm not sure if Qt has do do the unloading and releasing itself (as opposed to just telling the plugins to prepa

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread Thiago Macieira
On segunda-feira, 29 de janeiro de 2018 10:49:21 PST René J. V. Bertin wrote: > This is a platform theme plugin, it uses KF5 libraries but is not a KDE > plugin. It gets loaded automatically by Qt, and apparently also unloaded > automatically. If you set a breakpoint in ~QPlatformThemePlugin you'll

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread René J . V . Bertin
> No need drop it, just use QLatin1String wherever plugins and QRegExp is That would have to be in KIO and/or its dependencies then, I don't use QRegExp in my platform theme plugin. > involved, or check if not unloading kde plugins could be an option. That's what my fix/workaround does, which

Re: [Interest] How to make a looping element?

2018-01-29 Thread Jason H
This is more like a rotation.. I'm looking for the other kind of rotation where bearing % 360 can go from 359 to 1, without sweeping backwards while animating the sweep.  Rather than sweep, I'd prefer to seek  090180270360  -->--> increase <-- sweep b

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread René J . V . Bertin
Thiago Macieira wrote: > Qt plugins aren't. KF5 may be doing something different. This is a platform theme plugin, it uses KF5 libraries but is not a KDE plugin. It gets loaded automatically by Qt, and apparently also unloaded automatically. If you set a breakpoint in ~QPlatformThemePlugin you'

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread Martins , Sérgio
On 2018-01-29 18:24, René J.V. Bertin wrote: Hi, Don't use QStringLiteral with QRegExp, specially in plugins you'll unload. See https://blogs.kde.org/2015/11/05/qregexp-qstringliteral-crash-exit The backtrace there certainly looks familiar. The mentioned fix (in 5.6) was to stop unloading plu

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread René J . V . Bertin
Hi, >Don't use QStringLiteral with QRegExp, specially in plugins you'll >unload. >See https://blogs.kde.org/2015/11/05/qregexp-qstringliteral-crash-exit The backtrace there certainly looks familiar. The mentioned fix (in 5.6) was to stop unloading plugins, a principle that's clearly not being a

Re: [Interest] How to make a looping element?

2018-01-29 Thread Ola Røer Thorsen
Try the RotationAnimation item and set the direction property to shortest. http://doc.qt.io/qt-5/qml-qtquick-rotationanimation.html Cheers, Ola > Den 29. jan. 2018 kl. 02.15 skrev Jason H : > > I am trying to make a compass control, something that shows 0-360, like a > boat compass. It's got

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread David M. Cotter
> You can just use this: > > http://mxe.cc hmm this appears to allow you to develop on MacOS X are you saying that this lets you cross-compille to Windows? ie: build on MacOS the actual windows binary? but i don’t expect it can debug windows (remotely) from the mac. :( sigh. I remember Code

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread Martins , Sérgio
On 2018-01-29 14:49, René J.V. Bertin wrote: Hi, I've already touched on this in a previous message. I'm seeing an issue (crash or hang on exit) during the destruction of the QRegExpEngine globalEngineCache. Don't use QStringLiteral with QRegExp, specially in plugins you'll unload. See https

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread Thiago Macieira
On segunda-feira, 29 de janeiro de 2018 07:56:36 PST René J.V. Bertin wrote: > @Thiago: I thought plugins were not being unloaded anymore on exit, since QT > 5.6 or so. Why does that not apply to platform theme plugins, or has the > principle been reversed? Qt plugins aren't. KF5 may be doing some

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread Nikos Chantziaras
The linux to windows approach seems way more complicated than it needs to be. You can just use this: http://mxe.cc I've had very good results and it's trivial to set up. You just enter: make JOBS= qt5 and you've got a full cross-compiler, using static linking by default. On 29/01/18 17:

Re: [Interest] QWebView vs. QWebEngine

2018-01-29 Thread Jean-Michaël Celerier
> At this page there is written next to Qt Web Engine (under LGPL only). Therefore I concluded that the rest is GPL. If I am not mistaken it means instead that the rest is LGPL + commercial, which is Qt's "normal" license. Best, Jean-Michaël On Mon, Jan 29, 2018 at 3:27 PM, Walter Stefan wrote:

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread René J . V . Bertin
On Monday January 29 2018 17:53:44 Konstantin Tokarev wrote: > > I'm not having much luck pinpointing what in or used by KFileWidget could > > possibly be the culprit here. Suggestions would be appreciated! > > Port applications to QRegularExpression Hah... I hadn't thought about that one. Good

Re: [Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread Jean-Michaël Celerier
Not enough coffee today... the title should read: "from linux to windows and mac" instead. On Mon, Jan 29, 2018 at 4:10 PM, Jean-Michaël Celerier < jeanmichael.celer...@gmail.com> wrote: > https://hackernoon.com/a-c-hello-world-and-a-glass-of- > wine-oh-my-263434c0b8ad > https://hackernoon.com/a-

[Interest] Nice blog posts about cross-compiling Qt apps from windows to linux & mac

2018-01-29 Thread Jean-Michaël Celerier
https://hackernoon.com/a-c-hello-world-and-a-glass-of-wine-oh-my-263434c0b8ad https://hackernoon.com/a-c-hello-world-and-the-cute-heartless-rainbow-3cc9695f4142 https://medium.com/@corentin.jabot/a-c-hello-world-and-the-rose-gold-walled-garden-of-doom-4ac3c92385ed If these can be useful... maybe o

Re: [Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread Konstantin Tokarev
29.01.2018, 17:49, "René J.V. Bertin" : > Hi, > > I've already touched on this in a previous message. I'm seeing an issue > (crash or hang on exit) during the destruction of the QRegExpEngine > globalEngineCache. > > This happens on Mac when I have used a class (KFileWidget) via a platform > t

[Interest] can the QRegExpEngine cache acces objects belonging to an unloaded library during global destruction?

2018-01-29 Thread René J . V . Bertin
Hi, I've already touched on this in a previous message. I'm seeing an issue (crash or hang on exit) during the destruction of the QRegExpEngine globalEngineCache. This happens on Mac when I have used a class (KFileWidget) via a platform theme plugin; KFileWidget is provided by a library (KF5's

Re: [Interest] QWebView vs. QWebEngine

2018-01-29 Thread Walter Stefan
Thanks, because the web-page of Qt is confusing. At this page there is written next to Qt Web Engine (under LGPL only). Therefore I concluded that the rest is GPL. -Original Message- From: Konstantin Tokarev [mailto:annu...@yandex.ru] Sent: Montag, 29. Jänner 2018 18:20 To: Walter Stefa

Re: [Interest] QWebView vs. QWebEngine

2018-01-29 Thread Konstantin Tokarev
29.01.2018, 17:08, "Walter Stefan" : > Thanks for the quick response. > > Is there a web-link that supports this, or where can I seen the licenses to > the Qt modules? https://webkit.org/licensing-webkit/ http://code.qt.io/cgit/qt/qtwebkit.git/tree/LICENSE.LGPLv21 > > Best Regards, > Stefan >

Re: [Interest] QWebView vs. QWebEngine

2018-01-29 Thread Walter Stefan
Thanks for the quick response. Is there a web-link that supports this, or where can I seen the licenses to the Qt modules? Best Regards, Stefan -Original Message- From: Konstantin Tokarev [mailto:annu...@yandex.ru] Sent: Montag, 29. Jänner 2018 18:05 To: Walter Stefan ; interest@qt-pro

Re: [Interest] QWebView vs. QWebEngine

2018-01-29 Thread Konstantin Tokarev
29.01.2018, 16:58, "Walter Stefan" : > Hi, > > I’ve done some research about QWebView and QWebEngine and came to the > following conclusion: > > QWebView is under GPL and uses internally WebKit. Incorrect. QtWebKit code is LGPL+BSD. > > QWebEngine is under LGPL and uses internally Chromium. >

[Interest] QWebView vs. QWebEngine

2018-01-29 Thread Walter Stefan
Hi, I've done some research about QWebView and QWebEngine and came to the following conclusion: QWebView is under GPL and uses internally WebKit. QWebEngine is under LGPL and uses internally Chromium. Please let me know if this is correct, because I don't want to disclose my source and that wo

Re: [Interest] all of QtBase depends on qregexp.cpp (or almost)?

2018-01-29 Thread Konstantin Tokarev
29.01.2018, 15:48, "René J. V. Bertin" : > Giuseppe D'Angelo wrote: > > It does trigger a qmake rebuild, that's for sure. > >>  Check the contents of the Makefiles... >>  HTH, > > Maybe if I had a lot of time and those files were made for human consumption > ;) They are pretty clean already, co

Re: [Interest] all of QtBase depends on qregexp.cpp (or almost)?

2018-01-29 Thread René J . V . Bertin
Giuseppe D'Angelo wrote: It does trigger a qmake rebuild, that's for sure. > Check the contents of the Makefiles... > HTH, Maybe if I had a lot of time and those files were made for human consumption ;) BTW, reason I touched the file is that under certain conditions I'm seeing crashes or hangs

Re: [Interest] all of QtBase depends on qregexp.cpp (or almost)?

2018-01-29 Thread Giuseppe D'Angelo
On 29/01/18 12:23, René J.V. Bertin wrote: > Hi, > > Here's an interesting question: why is it that making a small change to > qregexp.cpp triggers what seems to be a full rebuild of the entire QtBase > component, when it isn't being used as an include file (AFAICT)? Probably it triggers rebuil

[Interest] Requesting info and contact for VNC back-end on Qt 5

2018-01-29 Thread Harry McKame
The VNC back-end was rewritten for Qt 5, and there are currently no logged bug-reports. I'm looking for any documentation on the new back-end. As while trying it I would basically be beta-testing, I would also like a direct line of communication to the developer(s) before starting. Is this poss

Re: [Interest] MQTT Client Message Routing

2018-01-29 Thread Maurice Kalinowski
Hi Andrew, The answer is as usually: It depends. Generally most people use it in a way to keep the subscription (and its messages) close to where the application logic happens. In your described scenario, it'd be appropriate to handle separate subscription objects for each client. That way you

Re: [Interest] MQTT Client Message Routing

2018-01-29 Thread Tony Rietwyk
Hi Andrew, I haven't used QMqtt.  Nonetheless, I would suggest a hybrid - using a separate subscription object for each folder in the hierarchy.  So the client subscription only needs to match on the terminal symbol and coordinates all of the actions relating to clients. Regards, Tony On 2

[Interest] all of QtBase depends on qregexp.cpp (or almost)?

2018-01-29 Thread René J . V . Bertin
Hi, Here's an interesting question: why is it that making a small change to qregexp.cpp triggers what seems to be a full rebuild of the entire QtBase component, when it isn't being used as an include file (AFAICT)? Thanks, R. ___ Interest mailing list

[Interest] MQTT Client Message Routing

2018-01-29 Thread Andrew Ialacci
Hello Qt Friends! When using the QMqtt library, I've noticed there are two possible ways to inspect messages received by the client from the broker. 1. QMqttClient::messageReceived(const QByteArray &message, const QMqttTopicName &topic) 2. QMqttSubscription::messageReceived(const QMqttMessage &