Re: [Interest] Does QNetworkAccessManager 4.8.1 handle compressed output from an Apache server?

2012-08-21 Thread Tony Rietwyk
Answering my own question... Yes QNAM handles receiving compressed responses no problem. Would still be nice to know how to enable it for sending compressed requests? Tony. > -Original Message- > From: interest-bounces+tony=rightsoft.com...@qt-project.org > [mailto:interest-bounce

Re: [Interest] memory fragmentation?

2012-08-21 Thread Lukas Geyer
Am 22.08.2012 05:45, schrieb Graeme Gill: > Till Oliver Knoll wrote: >> Folks, I gave up checking for NULL pointers (C, malloc) or bad_alloc >> exceptions (new, C++) a long time ago. I remember a discussion several >> years ago (here on Qt interest?) about desktop memory managers actually >> never

Re: [Interest] memory fragmentation?

2012-08-21 Thread Till Oliver Knoll
Am 22.08.12 05:45, schrieb Graeme Gill: > Till Oliver Knoll wrote: >> Folks, I gave up checking for NULL pointers (C, malloc) or bad_alloc >> exceptions (new, C++) a long time ago. I remember a discussion several >> years ago (here on Qt interest?) about desktop memory managers actually >> never re

[Interest] Does QNetworkAccessManager 4.8.1 handle compressed output from an Apache server?

2012-08-21 Thread Tony Rietwyk
Hi Everybody, My application talks to an Apache server to send and receive xml data. Most of the request xmls are small. The response xmls can vary up to 10Mb. It has been suggested to use http://httpd.apache.org/docs/2.2/mod/mod_deflate.html to compress the responses. Will QNAM handle this? N

Re: [Interest] memory fragmentation?

2012-08-21 Thread pritam.ghang...@gmail.com
On Wed, Aug 22, 2012 at 9:15 AM, Graeme Gill wrote: > Till Oliver Knoll wrote: > > Folks, I gave up checking for NULL pointers (C, malloc) or bad_alloc > > exceptions (new, C++) a long time ago. I remember a discussion several > > years ago (here on Qt interest?) about desktop memory managers act

Re: [Interest] Qt5 alpha on windows

2012-08-21 Thread pritam.ghang...@gmail.com
Adding qt version should work without any problems if your build is proper. While adding a new version, you just have to show the location of qmake.exe where ever it is installed. On Wed, Aug 22, 2012 at 10:19 AM, Ramakanthreddy_Kesireddy < ramakanthreddy_kesire...@mahindrasatyam.com> wrote: > Hi

Re: [Interest] Qt5 alpha on windows

2012-08-21 Thread Ramakanthreddy_Kesireddy
Hi Thiago, I tried to create new project by selecting Applications->QtQuick(Built-in elements) but am getting error Target setup No valid Qt versions found. Please add a Qt version in Tools->options->Build & Run even after adding Qt version like below: tools-->options-->Build&Run-->QtVersions

Re: [Interest] memory fragmentation?

2012-08-21 Thread Graeme Gill
Till Oliver Knoll wrote: > Folks, I gave up checking for NULL pointers (C, malloc) or bad_alloc > exceptions (new, C++) a long time ago. I remember a discussion several > years ago (here on Qt interest?) about desktop memory managers actually > never returning a NULL pointer (or throwing an exce

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Lincoln Ramsay
On 08/21/2012 06:17 PM, ext Igor Mironchik wrote: > But just imagine a situation in which the potential for double locking > in a one-threaded environment is posiible. > It is not possible at all. Sure it is. For one thing, emitting a signal to an object on the same thread usually calls the rece

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 7:02 PM, Andreas Pakulat wrote: > Hi, > > On Tue, Aug 21, 2012 at 11:54 PM, Stephen Chu wrote: >> On 8/21/12 5:47 PM, Nikos Chantziaras wrote: >>> Note that I didn't work with QAbstractItemModel before, so perhaps I'm >>> not the most suitable person here to give advice. With that bein

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 6:52 PM, Jan Kundrát wrote:> On 08/21/12 23:47, Nikos Chantziaras wrote: >> createIndex(row, column, new qint64(value)); > > This will leak, badly. It also won't likely work the way you intend it > to work, if I understand your problem correctly. > > What do you need the 64bit

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Andreas Pakulat
Hi, On Tue, Aug 21, 2012 at 11:54 PM, Stephen Chu wrote: > On 8/21/12 5:47 PM, Nikos Chantziaras wrote: >> Note that I didn't work with QAbstractItemModel before, so perhaps I'm >> not the most suitable person here to give advice. With that being said, >> you might be able to allocate like this:

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Jan Kundrát
On 08/21/12 23:47, Nikos Chantziaras wrote: >createIndex(row, column, new qint64(value)); This will leak, badly. It also won't likely work the way you intend it to work, if I understand your problem correctly. What do you need the 64bit indexing for, actually? From some of the sample code pro

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Nikos Chantziaras
On 22/08/12 00:54, Stephen Chu wrote: > On 8/21/12 5:47 PM, Nikos Chantziaras wrote: >> On 21/08/12 23:55, Stephen Chu wrote: >>> On 8/21/12 4:26 PM, Nikos Chantziaras wrote: On 21/08/12 22:45, Stephen Chu wrote: > On 8/21/12 3:35 PM, Christoph Feck wrote: >> On Tuesday 21 August 2012

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 5:47 PM, Nikos Chantziaras wrote: > On 21/08/12 23:55, Stephen Chu wrote: >> On 8/21/12 4:26 PM, Nikos Chantziaras wrote: >>> On 21/08/12 22:45, Stephen Chu wrote: On 8/21/12 3:35 PM, Christoph Feck wrote: > On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: >> Is there a

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Nikos Chantziaras
On 21/08/12 23:55, Stephen Chu wrote: > On 8/21/12 4:26 PM, Nikos Chantziaras wrote: >> On 21/08/12 22:45, Stephen Chu wrote: >>> On 8/21/12 3:35 PM, Christoph Feck wrote: On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: > Is there a way to store a 64-bit internal ID in QModelIndex? T

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 4:26 PM, Nikos Chantziaras wrote: > On 21/08/12 22:45, Stephen Chu wrote: >> On 8/21/12 3:35 PM, Christoph Feck wrote: >>> On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: Is there a way to store a 64-bit internal ID in QModelIndex? The function QModelIndex::internalId() r

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Nikos Chantziaras
On 21/08/12 22:45, Stephen Chu wrote: > On 8/21/12 3:35 PM, Christoph Feck wrote: >> On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: >>> Is there a way to store a 64-bit internal ID in QModelIndex? The >>> function QModelIndex::internalId() returns a 64-bit number but >>> there's no way to pu

Re: [Interest] memory fragmentation?

2012-08-21 Thread Till Oliver Knoll
Am 21.08.12 18:04, schrieb Thiago Macieira: > On terça-feira, 21 de agosto de 2012 07.09.44, Jason H wrote: >> By returning out of memory, unrolling the stack, then at the top level >> displaying the error. > > Well, don't use for Qt. > > Qt code *will* crash in unpredictable ways under OOM circums

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
On 8/21/12 3:35 PM, Christoph Feck wrote: > On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: >> Is there a way to store a 64-bit internal ID in QModelIndex? The >> function QModelIndex::internalId() returns a 64-bit number but >> there's no way to put one in. The constructor takes only a 32-bi

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Christoph Feck
On Tuesday 21 August 2012 20:55:00 Stephen Chu wrote: > Is there a way to store a 64-bit internal ID in QModelIndex? The > function QModelIndex::internalId() returns a 64-bit number but > there's no way to put one in. The constructor takes only a 32-bit > integer. Try using the overload that takes

[Interest] 64-bit internal ID for QModelIndex?

2012-08-21 Thread Stephen Chu
Is there a way to store a 64-bit internal ID in QModelIndex? The function QModelIndex::internalId() returns a 64-bit number but there's no way to put one in. The constructor takes only a 32-bit integer. Thanks. ___ Interest mailing list Interest@qt-pro

Re: [Interest] memory fragmentation?

2012-08-21 Thread Jason H
Given the network-centric world we live in, I usually think about networks, not disks, because as you point out, there are a variety of faster-than-rotational media - be RAM FS, flash FS or some other kind of mixed (SSD). Still the CPU is orders of magnitude faster than anything but a ramdisk.

Re: [Interest] memory fragmentation?

2012-08-21 Thread Thiago Macieira
On terça-feira, 21 de agosto de 2012 07.09.44, Jason H wrote: > By returning out of memory, unrolling the stack, then at the top level > displaying the error. Well, don't use for Qt. Qt code *will* crash in unpredictable ways under OOM circumstances. We accept patches to improve the exception-sa

Re: [Interest] memory fragmentation?

2012-08-21 Thread John Weeks
On 21-Aug-2012, at 12:52 AM, Thiago Macieira wrote: > How? Putting up an alert usually requires allocating memory somewhere, be it > in your application or in the display server. > > If we're already out of memory, the likelihood of another set of allocations > succeeding is quite low. If a

Re: [Interest] memory fragmentation?

2012-08-21 Thread Atlant Schmidt
All: > It can be very easily justified that many to Utf* calls are justified because > of latency in the I/O system means it happens "for free" while reducing the > overall latency. In the "modern world", be a little cautious when you decide what activities can overlap with other activities. Fo

[Interest] Access system provided icons?

2012-08-21 Thread Stephen Chu
I need to show some standard (on the Mac at least) icons in my app, like pedlock or stop/error signs. On the Mac, it's done via a set of standard icon "signatures" like: enum { kGenericFolderIcon= 'fldr', kDropFolderIcon = 'dbox', kMountedFolderIcon

Re: [Interest] memory fragmentation?

2012-08-21 Thread Jason H
Not true for really large XML. With the all-in-one approach, you have to have the entire document completed. This will create a long pause, and increase latency, and increase memory usage. It can be very easily justified that many to Utf* calls are justified because of latency in the I/O system

Re: [Interest] memory fragmentation?

2012-08-21 Thread Jason H
By returning out of memory, unrolling the stack, then at the top level displaying the error. From: Thiago Macieira To: interest@qt-project.org Sent: Tuesday, August 21, 2012 3:52 AM Subject: Re: [Interest] memory fragmentation? On segunda-feira, 20 de ago

Re: [Interest] memory fragmentation?

2012-08-21 Thread Jason H
Or, just restructure your program to be multi-process so each process has 3gb available to it. Which is a great approach if you have virtual memory. But I don't. From: Alex Malyushytskyy To: interest@qt-project.org Sent: Monday, August 20, 2012 6:27 PM Subje

Re: [Interest] memory fragmentation?

2012-08-21 Thread Bob Hood
On 8/20/2012 3:39 PM, Scott Aron Bloom wrote: > Ok.. Call me taught.. but I can tell you, last time I tried, it didn't > compile in 64 bit mode. I only use VS2008, and I have routinely compiled 4.6, 4.7 and 4.8 lines of Qt in both 32- and 64-bit modes for my project. You're just not trying hard

Re: [Interest] memory fragmentation?

2012-08-21 Thread Adriano Rezende
On 08/20/2012 05:51 PM, ext Jason H wrote: What can be done to combat this in C++/Qt? Initially I thought there might be some kind of QObject d-ptr magic where the large allocations can be in the private class and re-allocate and copy the private class, without affecting the pointers that the

Re: [Interest] memory fragmentation?

2012-08-21 Thread Thiago Macieira
On terça-feira, 21 de agosto de 2012 11.53.45, Rainer Wiesenfarth wrote: > > How? Putting up an alert usually requires allocating memory somewhere, be > > it in your application or in the display server. > > Look at the various solutions used as "new handlers". For example, you > could pre-allocate

Re: [Interest] QString operator==

2012-08-21 Thread Bo Thorsen
Den 21-08-2012 13:09, Thomas Meyer skrev: > Hi, > I can't find the definition for > ... > booloperator==(constQString&s)const; > ... > in QString (.h, line 403, Qt v4.8.2 (MS Windows 7)). > > I only found it for QLatinString and QByteArray: > (Where is the declaration for QByteArray?) > ... > inlin

Re: [Interest] QString operator==

2012-08-21 Thread Giuseppe D'Angelo
On 21 August 2012 12:09, Thomas Meyer wrote: > Hi, > I can't find the definition for > ... > bool operator==(const QString &s) const; > ... > in QString (.h, line 403, Qt v4.8.2 (MS Windows 7)). http://qt.gitorious.org/qt/qt/blobs/4.8/src/corelib/tools/qstring.cpp#line2181 -- Giuseppe D'Angelo

[Interest] QString operator==

2012-08-21 Thread Thomas Meyer
Hi, I can't find the definition for ... booloperator==(constQString&s)const; ... in QString (.h, line 403, Qt v4.8.2 (MS Windows 7)). I only found it for QLatinString and QByteArray: (Where is the declaration for QByteArray?) ... inlineboolQByteArray::operator==(constQString&s)const {returnqStrin

Re: [Interest] memory fragmentation?

2012-08-21 Thread Konstantin Tokarev
Hi all, My question is slightly off-topic, but are there any dynamic analysis tools for measuring memory fragmentation? -- Regards, Konstantin ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Qt 5.0 Location - QML show a Route

2012-08-21 Thread Thomas . Gietlhuber-EXT
Hi, I want to try out some functions of Qt Location 5.0. I’m only using QML Quick 2.0. So I already activated and added the Plugin, “nokia” with the token and the app_id. I also added the Proxy, so that so Map can be loaded. Showing the Map and navigate to some Places with coordinates already wor

Re: [Interest] memory fragmentation?

2012-08-21 Thread Bo Thorsen
Hi Jason, I'm going back to the original question, the thread seems to have wandered off :) Den 20-08-2012 17:51, Jason H skrev: > What can be done to combat this in C++/Qt? > > Initially I thought there might be some kind of QObject d-ptr magic > where the large allocations can be in the priva

Re: [Interest] memory fragmentation?

2012-08-21 Thread Rainer Wiesenfarth
Am 21.08.2012 09:52, schrieb Thiago Macieira: On segunda-feira, 20 de agosto de 2012 17.31.27, John Weeks wrote: On 20-Aug-2012, at 4:20 PM, Thiago Macieira wrote: In any case, if the application needs memory and can't get it, what do you suggest it do? You put up an alert telling the user th

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Thiago Macieira
On terça-feira, 21 de agosto de 2012 11.49.24, Igor Mironchik wrote: > > On terça-feira, 21 de agosto de 2012 11.41.53, Igor Mironchik wrote: > >> No, I don't call one method form another. There is no recursion. But > >> there is a dead-lock. > > > > Make a testcase that shows the problem. > > In t

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Igor Mironchik
Hi >>> Look at your backtrace and figure out what the other lock point was. >> But just imagine a situation in which the potential for double locking >> in a one-threaded environment is posiible. >> It is not possible at all. But I see that when executing >> ServerSocket::doThis() sometimes method

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Andreas Pakulat
Hi, On Tue, Aug 21, 2012 at 10:17 AM, Igor Mironchik wrote: >> On terça-feira, 21 de agosto de 2012 11.04.14, Igor Mironchik wrote: >>> I'm playint with this issue. And notice that the problem is not played >>> too often. >>> Sometimes slotDisconnected() not invoked in general. What is problem to

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Thiago Macieira
On terça-feira, 21 de agosto de 2012 11.41.53, Igor Mironchik wrote: > No, I don't call one method form another. There is no recursion. But > there is a dead-lock. Make a testcase that shows the problem. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Igor Mironchik
> Look at your backtrace and figure out what the other lock point was. >> But just imagine a situation in which the potential for double locking >> in a one-threaded environment is posiible. >> It is not possible at all. But I see that when executing >> ServerSocket::doThis() sometimes method Serv

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Thiago Macieira
On terça-feira, 21 de agosto de 2012 11.17.18, Igor Mironchik wrote: > > On terça-feira, 21 de agosto de 2012 11.04.14, Igor Mironchik wrote: > >> I'm playint with this issue. And notice that the problem is not played > >> too often. > >> Sometimes slotDisconnected() not invoked in general. What is

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Igor Mironchik
> On terça-feira, 21 de agosto de 2012 11.04.14, Igor Mironchik wrote: >> I'm playint with this issue. And notice that the problem is not played >> too often. >> Sometimes slotDisconnected() not invoked in general. What is problem too. >> But when he invoked I have stable dead-lock. What is the rea

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Thiago Macieira
On terça-feira, 21 de agosto de 2012 11.04.14, Igor Mironchik wrote: > I'm playint with this issue. And notice that the problem is not played > too often. > Sometimes slotDisconnected() not invoked in general. What is problem too. > But when he invoked I have stable dead-lock. What is the reason? A

Re: [Interest] QTSPCosket signal disconnected()

2012-08-21 Thread Igor Mironchik
I'm playint with this issue. And notice that the problem is not played too often. Sometimes slotDisconnected() not invoked in general. What is problem too. But when he invoked I have stable dead-lock. What is the reason? App is one-threaded. > Hello. > > In the attachement you can find test appl

Re: [Interest] memory fragmentation?

2012-08-21 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 17.31.27, John Weeks wrote: > On 20-Aug-2012, at 4:20 PM, Thiago Macieira wrote: > > In any case, if the application needs memory and can't get it, what do you > > suggest it do? > > You put up an alert telling the user that the operation can't be completed >