Re: [Interest] Triggering Actions on Application Close

2013-07-08 Thread Charles Yin
see also : http://stackoverflow.com/questions/3360761/how-to-do-a-cleanup-after-sigkill 2013/7/9 Gopalakrishna Bhat > > > > On Tue, Jul 9, 2013 at 9:33 AM, andy fillebrown > wrote: > >> I think the problem might be the use of the "Force quit" button. That is >> not a normal way to close an ap

Re: [Interest] Triggering Actions on Application Close

2013-07-08 Thread Gopalakrishna Bhat
On Tue, Jul 9, 2013 at 9:33 AM, andy fillebrown wrote: > I think the problem might be the use of the "Force quit" button. That is > not a normal way to close an application. Pressing the "Force quit" button > is similar to using the OS to kill the process. I'd be surprised if any > slots were ca

Re: [Interest] Triggering Actions on Application Close

2013-07-08 Thread andy fillebrown
I think the problem might be the use of the "Force quit" button. That is not a normal way to close an application. Pressing the "Force quit" button is similar to using the OS to kill the process. I'd be surprised if any slots were called in that case. Try closing the application like a normal us

[Interest] Some Questions about QTableWidget

2013-07-08 Thread Shuo Wang
Hi, I want to use QTableWidget to create an application such as the *WPS Excel. *Now I have implemented some functions,but I have some questions: 1.How to set the *color/style/weight *of the selection cells' gridline(not all the cells)? 2.How to change the *text direction* of one cell? 3

Re: [Interest] bad_alloc raised : Amout of RAM available ?

2013-07-08 Thread Constantin Makshin
A bit off-topic, but still: it's not a very good idea to make your application's behavior/logic dependent on amount of free memory reported by the system. Reasons: 1) most, if not all, modern OSes use "delayed allocation" strategy, so a successful malloc() or its equivalent doesn't guarantee you ac

Re: [Interest] bad_alloc raised : Amout of RAM available ?

2013-07-08 Thread Thiago Macieira
On segunda-feira, 8 de julho de 2013 15.05.30, qt.dan...@free.fr wrote: > I know I have to debug my apps. That's what I am trying to do here. > > What I do not know is how to set up a breakpoint on a std exception I > did not raise, not knowing where it was raised. > > I am using gdb under QtCrea

Re: [Interest] valgrind

2013-07-08 Thread Thiago Macieira
On segunda-feira, 8 de julho de 2013 10.55.02, Jonathan Greig wrote: > ==25878== LEAK SUMMARY: > > ==25878== definitely lost: 40 bytes in 1 blocks > > ==25878== indirectly lost: 40 bytes in 1 blocks > > ==25878== possibly lost: 0 bytes in 0 blocks > > ==25878== still reachable: 3,424 bytes in 5 blo

Re: [Interest] valgrind

2013-07-08 Thread Thiago Macieira
On segunda-feira, 8 de julho de 2013 10.55.02, Jonathan Greig wrote: > Can you please explain your reasoning or how it might go wrong as "barely > more" sounds exactly what I want and what Alex is asking for. My reasoning > is that it catches all of MY memory leaks, but supresses the gazillions of

Re: [Interest] bad_alloc raised : Amout of RAM available ?

2013-07-08 Thread Keith Gardner
> Besides, I still need to know how much memory is left available for my > app, that is running stats on large amounts of real time data. So that > I could run stats on as large a sample as possible on a given target > machine. Is your application a 32-bit app? Under Windows, applications are re