Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-09 Thread André Somers
Verstuurd vanaf mijn iPhone > Op 9 aug. 2016 om 22:16 heeft André Somers het > volgende geschreven: > > > > Verstuurd vanaf mijn iPhone > >> Op 9 aug. 2016 om 20:43 heeft maitai het volgende >> geschreven: >> >> Thanks Viktor but my problem is not to detect whether 2 lines are crossing,

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-09 Thread André Somers
Verstuurd vanaf mijn iPhone > Op 9 aug. 2016 om 20:43 heeft maitai het volgende > geschreven: > > Thanks Viktor but my problem is not to detect whether 2 lines are crossing, > it is to avoid looping on 50k lines for nothing ;) My worst case is when no > cross is found and I looked at each a

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-09 Thread maitai
Thanks Viktor but my problem is not to detect whether 2 lines are crossing, it is to avoid looping on 50k lines for nothing ;) My worst case is when no cross is found and I looked at each and every line for just nothing. Checking a line is crossing another is really fast and I am not using QLineF::

Re: [Interest] QNetworkAccessManager networkAccessible - Android vs iOS

2016-08-09 Thread ekke
Am 09.08.16 um 15:43 schrieb Jason H: > This is a well known bug that has bounced around varuous statuses in > various other issue numbers and is still not fixed it seems. > > https://bugreports.qt.io/browse/QTBUG-49751 Thanks mentioning this. Added my workaround (always instantiate QNetworkAcces

Re: [Interest] QNetworkAccessManager networkAccessible - Android vs iOS

2016-08-09 Thread Jason H
This is a well known bug that has bounced around varuous statuses in various other issue numbers and is still not fixed it seems.   https://bugreports.qt.io/browse/QTBUG-49751   Sent: Tuesday, August 09, 2016 at 5:32 AM From: ekke To: "interest@qt-project.org" Subject: [Interest] QNetworkAcc

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-09 Thread Viktor Engelmann
Sweepline algorithms are what you are looking for. For 2 single lines, check this http://algorithman.de/Mathe/GeomSchnitt.pdf It contains an explicit formula :-) for detecting whether 2 lines intersect. It is in german, but contains mostly formulas - so it might be understandable. Kind regards

[Interest] QNetworkAccessManager networkAccessible - Android vs iOS

2016-08-09 Thread ekke
Hi, just noticed a difference between Android and iOS Before doing a request I'm checking the Network if(mNetworkAccessManager->networkAccessible()!=QNetworkAccessManager::Accessible){ on Android all works well. Switching off wifi and mobile data --> Not Accessible Switching on again --> Acce