Re: [Interest] QMap operator<() overload.

2015-02-25 Thread André Somers
K. Frank schreef op 25-2-2015 om 16:46: > Hello Kai and Torgeir! > > Thank you for your insightful comments. > > I have some follow-up questions, in line, below. (And sorry > for moving the discussion away from Qt.) > > On Wed, Feb 25, 2015 at 9:45 AM, Torgeir Lilleskog > wrote: >> I like this ta

Re: [Interest] QSettings stale lock file

2015-02-25 Thread Frank Hemer
On Wednesday 25 February 2015 07:25:41 Thiago Macieira wrote: > On Wednesday 25 February 2015 11:30:57 Frank Hemer wrote: > > On a windows7 professional, I'm using QSettings for the local user - the > > settings data is located on a roaming profile. > > Now I experience stale lock files xxx.ini.lo

Re: [Interest] QMap operator<() overload.

2015-02-25 Thread K. Frank
Hello Kai and Torgeir! Thank you for your insightful comments. I have some follow-up questions, in line, below. (And sorry for moving the discussion away from Qt.) On Wed, Feb 25, 2015 at 9:45 AM, Torgeir Lilleskog wrote: > I like this talk by Chandler Carruth: > https://www.youtube.com/watch?

Re: [Interest] Http Proxy connection woes

2015-02-25 Thread Thiago Macieira
On Wednesday 25 February 2015 05:27:57 Jason Kretzer wrote: > Authentication is NTLM. Would I need to modify anything to account for > that? Yes. Make sure your timeouts are big, since NTLM requires that you connect to the proxy, send the request, disconnect, connect again, send the request, re

Re: [Interest] QMap operator<() overload.

2015-02-25 Thread Torgeir Lilleskog
I like this talk by Chandler Carruth: https://www.youtube.com/watch?v=fHNmRkzxHWs He says something along the lines of "I don't think I've ever seen a problem for which std::map is the right data structure" QMap is the same type of data structure as std::map. If your map is small and not expected

Re: [Interest] Http Proxy connection woes

2015-02-25 Thread Jason Kretzer
Authentication is NTLM. Would I need to modify anything to account for that? -Jason //--// Jason R. Kretzer Lead Application Developer ja...@gocodigo.com //-// From: Thiago Macieira mailto:thiago.macie

Re: [Interest] QMap operator<() overload.

2015-02-25 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=theqtcompany@qt-project.org > [...] > Could you elaborate a little on your comment, and on for which use cases > QMap might not be the "right" abstraction? > > I've always thought that maps (and hash-maps, e.g. std::unordered_m

Re: [Interest] QMap operator<() overload.

2015-02-25 Thread K. Frank
Hi Kai! On Wed, Feb 25, 2015 at 5:16 AM, Koehne Kai wrote: > >> -Original Message- >> From: interest-bounces+kai.koehne=theqtcompany@qt-project.org >> On Behalf Of manish sharma >> ... >> Hi, >> >> I am using a QMap to maintain my sorted list based with QString as key. >> >> QMap lis

[Interest] QSettings stale lock file

2015-02-25 Thread Frank Hemer
On a windows7 professional, I'm using QSettings for the local user - the settings data is located on a roaming profile. Now I experience stale lock files xxx.ini.lock (zero bytes) that crash my application. There is no other process running that could access the qsettings! Can anyone shed some

Re: [Interest] QMap operator<() overload.

2015-02-25 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=theqtcompany@qt-project.org > [mailto:interest-bounces+kai.koehne=theqtcompany@qt-project.org] > On Behalf Of manish sharma > Sent: Wednesday, February 25, 2015 10:51 AM > To: interest@qt-project.org > Subject: [Interest] QM

[Interest] QMap operator<() overload.

2015-02-25 Thread manish sharma
Hi, I am using a QMap to maintain my sorted list based with QString as key. QMap list; I have certain pattern inside key of above map and want to have my own sorting order than default QString operator<(). So i have following function in my cpp. bool operator<(const QString &s1, const QString