Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Frank Rueter | OHUfx
Thanks Elvis, much appreciated! On 19/01/17 7:55 PM, Elvis Stansvik wrote: 2017-01-19 1:10 GMT+01:00 Thiago Macieira : On quarta-feira, 18 de janeiro de 2017 20:04:41 PST Elvis Stansvik wrote: If you have one QThread that depends on the completion of another, then no, I don't think there's a

Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Elvis Stansvik
2017-01-19 1:10 GMT+01:00 Thiago Macieira : > On quarta-feira, 18 de janeiro de 2017 20:04:41 PST Elvis Stansvik wrote: >> If you have one QThread that depends on the completion of another, >> then no, I don't think there's a convenient API in Qt to express that >> relationship and run the threads

Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-18 Thread André Pönitz
On Wed, Jan 18, 2017 at 04:09:41PM -0800, Thiago Macieira wrote: > On quinta-feira, 19 de janeiro de 2017 00:20:03 PST Prav wrote: > > So finally : Qt version 5.8.0 can NOT be build under Win7 with Win7SDK!? (It > > seems Qt for desktop need some definitions from WinRT ... who know why) > > Qt 5.8

Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Frank Rueter | OHUfx
OK, thanks Thiago and Elvis. I think I got the picture now and can proceed knowing I'm not heading into a dead end. Cheers, frank On 19/01/17 1:10 PM, Thiago Macieira wrote: On quarta-feira, 18 de janeiro de 2017 20:04:41 PST Elvis Stansvik wrote: If you have one QThread that depends on the

Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Thiago Macieira
On quarta-feira, 18 de janeiro de 2017 20:04:41 PST Elvis Stansvik wrote: > If you have one QThread that depends on the completion of another, > then no, I don't think there's a convenient API in Qt to express that > relationship and run the threads in sequence. You'll have to string > them togethe

Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-18 Thread Thiago Macieira
On quinta-feira, 19 de janeiro de 2017 00:20:03 PST Prav wrote: > So finally : Qt version 5.8.0 can NOT be build under Win7 with Win7SDK!? (It > seems Qt for desktop need some definitions from WinRT ... who know why) Qt 5.8 can be built under Win7, but you should use the Win10SDK. The reason for

Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-18 Thread Thiago Macieira
On quinta-feira, 19 de janeiro de 2017 00:40:22 PST Prav wrote: > Hello, Thiago. > > > -no-rtti is not tested and clearly someone broke it. I've submitted a > > change to remove that option from configure starting with Qt 5.8.1. > > I was thinking that without RTTI compiled programs became lig

Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-18 Thread Prav
Hello, Thiago. > -no-rtti is not tested and clearly someone broke it. I've submitted a change > to remove that option from configure starting with Qt 5.8.1. I was thinking that without RTTI compiled programs became lighter and faster (but never saw values of how much) As I can see Qt tries to

Re: [Interest] QThreadPool functionality for QThreads (Frank Rueter | OHUfx)

2017-01-18 Thread Frank Rueter | OHUfx
Thanks Tim, yes, that thought had crossed my mind while I was converting to QRunnables. The latter seems to give me the control for what I need in the main controller code without having to adjust the downloader class, so I will see if that behaves through some testing. But it's certainly goo

Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-18 Thread Prav
Title: Re: [Interest] Qt 5.8.0 RC build under windows Hello, Mike. >Mike Chinander: >I compiled Qt 5.8.0 RC on Windows 7 with MSVC2013 and the Windows 8 SDK. OK. I got it. You are right ... there is no error with building of qwin10helpers.cpp with Win8SDK. So finally : Qt version 5.8.0 can NOT

Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Frank Rueter | OHUfx
Thanks Elvis. And my apologies (especially to Thiago) for posting a misleading and incopmlete question. I have been playing with converting to QRunner which seems to work fine (haven't tested it thoroughly though). I will have a look at QNetworkAccessManager so I can compare the approaches, t

Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Elvis Stansvik
2017-01-18 20:11 GMT+01:00 Elvis Stansvik : > 2017-01-18 20:04 GMT+01:00 Elvis Stansvik : >> 2017-01-18 8:17 GMT+01:00 Frank Rueter | OHUfx : >>> Hi Thiago, >>> >>> thanks for your quick reply. I will try and give some more context: >>> I use the python requests module inside my PySide app to post

Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Elvis Stansvik
2017-01-18 20:04 GMT+01:00 Elvis Stansvik : > 2017-01-18 8:17 GMT+01:00 Frank Rueter | OHUfx : >> Hi Thiago, >> >> thanks for your quick reply. I will try and give some more context: >> I use the python requests module inside my PySide app to post requests to a >> website. Some of those requests re

Re: [Interest] QThreadPool functionality for QThreads

2017-01-18 Thread Elvis Stansvik
2017-01-18 8:17 GMT+01:00 Frank Rueter | OHUfx : > Hi Thiago, > > thanks for your quick reply. I will try and give some more context: > I use the python requests module inside my PySide app to post requests to a > website. Some of those requests return a lot of data that I need to parse to > be abl

Re: [Interest] QTest + QSignalSpy doesn't seem to work with deferred signals

2017-01-18 Thread Bob Hood
On 1/18/2017 10:52 AM, Giuseppe D'Angelo wrote: Il 18/01/2017 18:16, Bob Hood ha scritto: Is QTest capable of testing deferred results--i.e., evaluating tests results after the even loop has run again--or can only synchronous actions be tested? I know people have used qWait() and such in the pas

Re: [Interest] QTest + QSignalSpy doesn't seem to work with deferred signals

2017-01-18 Thread Bob Hood
On 1/18/2017 10:28 AM, Konrad Rosenbaum wrote: Hi, On Wednesday, January 18, 2017 10:16:30 Bob Hood wrote: I'm trying to develop a unit test for an deferred signal; i.e. one that won't be emitted until the event loop has been allowed to run. The case looks like: void MyTest::user_info_def

Re: [Interest] QTest + QSignalSpy doesn't seem to work with deferred signals

2017-01-18 Thread Giuseppe D'Angelo
Il 18/01/2017 18:16, Bob Hood ha scritto: > Is QTest capable of testing deferred results--i.e., evaluating tests results > after the even loop has run again--or can only synchronous actions be tested? > > I know people have used qWait() and such in the past, or I supposed I could > manually in

Re: [Interest] QTest + QSignalSpy doesn't seem to work with deferred signals

2017-01-18 Thread Konrad Rosenbaum
Hi, On Wednesday, January 18, 2017 10:16:30 Bob Hood wrote: > I'm trying to develop a unit test for an deferred signal; i.e. one that > won't be emitted until the event loop has been allowed to run. The case > looks like: > >void MyTest::user_info_deferred() >{ >QVERIFY(qnam_clas

[Interest] QTest + QSignalSpy doesn't seem to work with deferred signals

2017-01-18 Thread Bob Hood
I'm trying to develop a unit test for an deferred signal; i.e. one that won't be emitted until the event loop has been allowed to run. The case looks like: void MyTest::user_info_deferred() { QVERIFY(qnam_class_ptr != nullptr); QSignalSpy spy(qnam_class_ptr, &QNAMClass::signal_

Re: [Interest] Qt 5.8.0 RC build under windows

2017-01-18 Thread Mike Chinander
On Wed, Jan 18, 2017 at 1:04 AM, Prav wrote: > > Does anyone know about requirements of using Win10SDK for Qt 5.8.0? Is > Win10SDK is really necessary to build Qt even for Win7 or it is bug in Qt > build system? I compiled Qt 5.8.0 RC on Windows 7 with MSVC2013 and the Windows 8 SDK. __

Re: [Interest] QThreadPool functionality for QThreads (Frank Rueter | OHUfx)

2017-01-18 Thread Tim Iskander
instead of re-architecting your threading model, could you just tweak the downloader class to take a list of files and then each one would be synchronous. multiple concurrent downloads would each have a list of 1 file. just a thought... -- Tim Iskander Senior Engineer Critical Link LLC (315) 425-

[Interest] Cross compiling QtSerialPort 4 / serialport.prf questions

2017-01-18 Thread André Hartmann
Hi, We have a Yocto toolchain for embedded Linux images with Qt 4.8.6. The Qt receipes are from openembedded-core / recipes-qt. I now want to include QtSerialPort into this image without upgrading Qt. So I wrote my own bitbake recipe and can build QtSerialPort sucessfully. My problem is to

[Interest] mixing parallel Qt5 installations

2017-01-18 Thread René J . V . Bertin
Hi, I have a gentoo-prefix like local set-up under Linux with an installation under /opt/local that holds among others Qt5 (5.7.1 currently): /opt/local/libexec/qt5 : libraries & binaries /opt/local/share/qt5 : plugins and other shared stuff not linked or called directly I've observed that I c