Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-16 Thread Nikos Chantziaras
On 16/10/12 22:33, Andrea Franceschini wrote: > Hi there, > > I just downloaded the latest Qt Library debug package for OS X. I was > a bit surprised to only find frameworks, but more than that I was > surprised not to find the tools, like qmake and everything. Is it just > me or is there something

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Lincoln Ramsay
On 17/10/12 01:00, Sensei wrote: > So, if in my main thread every time I need to search I will create a > thread, a searcher, move the searcher to the new thread. You should probably just keep these objects around rather than recreating them all the time. > Am I leaking memory? Yes... > How ca

Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-16 Thread Andrea Franceschini
2012/10/16 Jana Aurindam : > You have to install both release and debug libraries. I see, thanks! I assumed they were alternatives. Loosely related, is there going to be a vs2012 release any time soon? I'm stuck with 2010 anyway for independent reasons but I'd like to give 2012 a go nonetheless.

Re: [Interest] Is Qt Library for OS X frameworks only?

2012-10-16 Thread Jana Aurindam
You have to install both release and debug libraries. Qt libraries 4.8.3 for Mac (183 MB) -- Aurindam Jana, Software Engineer - Digia, Qt Don't Panic! Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäfts

[Interest] Is Qt Library for OS X frameworks only?

2012-10-16 Thread Andrea Franceschini
Hi there, I just downloaded the latest Qt Library debug package for OS X. I was a bit surprised to only find frameworks, but more than that I was surprised not to find the tools, like qmake and everything. Is it just me or is there something wrong? In the meanwhile I'm going to install it via MacP

Re: [Interest] Qt5 beta1 windows - can't get device notifications from a QWindow::winId() via RegisterDeviceNotification

2012-10-16 Thread Liam Staskawicz
On Tue, Oct 16, 2012 at 3:00 AM, wrote: > -- > > Message: 7 > Date: Mon, 15 Oct 2012 20:49:58 -0700 > From: Thiago Macieira > Subject: Re: [Interest] Qt5 beta1 windows - can't get device > notifications from a QWindow::winId() via > RegisterDeviceNotificatio

Re: [Interest] QTcpServer memory usage

2012-10-16 Thread Lucas.Betschart
Thanks everybody for the explanations. I've added nexPendingConnection() and a readAll() now. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Igor Mironchik
16.10.2012 18:00, Sensei пишет: > Am I leaking memory? I understand that I'm doing so. How can I delete > these objects? I mean the thread, searcher, and their parameters, in > this case. Thanks! In slot connected to the result signal do: thread->quit(); thread->wait(); thread->deleteLater(); s

Re: [Interest] QTcpServer memory usage

2012-10-16 Thread Thiago Macieira
On terça-feira, 16 de outubro de 2012 15.11.23, lucas.betsch...@crypto.ch wrote: > Hi everybody, > > What happens when I have a QTcpServer which gets a connection that writes > much data to it (endless), but I never create a QTcpSocket (with > QTcpServer::nextPendingConnection() ) and read this dat

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Sensei
On 10/16/12 3:34pm, Lincoln Ramsay wrote: > You want an async QObject-based interface (call in via slot, answer via > signal). I see what you mean. I went this way and I'm quite happy, so thanks a lot! Here's the awesome output with two different threads! emitting signal on thread 0x7fff7cee618

Re: [Interest] QTcpServer memory usage

2012-10-16 Thread Joseph W Joshua
On Oct 16, 2012, at 4:11 PM, wrote: > Hi everybody, > > What happens when I have a QTcpServer which gets a connection that writes > much data to it (endless), but I never create a QTcpSocket (with > QTcpServer::nextPendingConnection() ) and read this data? > Will I the memory usage of my appl

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Bo Thorsen
Den 16-10-2012 15:34, Lincoln Ramsay skrev: > On 16/10/12 11:15 PM, Sensei wrote: >> Once in a while, when the GUI needs it, it will "wake the thread up", >> and run a method of my QThread subclass, in my case, a "find in files" >> or "rename all files", or any other method. >> >> I thought I could

Re: [Interest] QTcpServer memory usage

2012-10-16 Thread Bo Thorsen
Den 16-10-2012 15:11, lucas.betsch...@crypto.ch skrev: > Hi everybody, > > What happens when I have a QTcpServer which gets a connection that writes > much data to it (endless), but I never create a QTcpSocket (with > QTcpServer::nextPendingConnection() ) and read this data? > Will I the memory u

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Igor Mironchik
16.10.2012 16:15, Sensei пишет: > This is quite easy: I want to start a thread that never ends. Just call exec() in your run() method. And it will start event loop that will work untill you call exit() or quit() in you thread. And don't forget to start() your thread. > Once in a while, when the

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Lincoln Ramsay
On 16/10/12 11:15 PM, Sensei wrote: > Once in a while, when the GUI needs it, it will "wake the thread up", > and run a method of my QThread subclass, in my case, a "find in files" > or "rename all files", or any other method. > > I thought I could simply make run() be an infinite loop, sleeping fo

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Tibold Kandrai
Or you could use ThreadPools, depending on the task you need to accomplish: http://doc.qt.digia.com/stable/qthreadpool.html Tibold On 2012-10-16 15:24, Tibold Kandrai wrote: > Hi, > > If you want a QThread to handle something Q related like, events or > Queued SLOTS, you need to start an event lo

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Atlant Schmidt
Sensei: I think it's generally incorrect to do a QApplication::exec() from anywhere but your main thread (the GUI thread). Instead, your worker thread should just be waiting on a semaphore (set by the main thread) or some such. Note that no explicit "sleep()" is usually required. Inse

Re: [Interest] Never ending thread: blocking GUI

2012-10-16 Thread Tibold Kandrai
Hi, If you want a QThread to handle something Q related like, events or Queued SLOTS, you need to start an event loop. This is what you need: http://qt-project.org/doc/qt-4.8/QEventLoop.html But I don't know why did it hang your UI because that depends on how did you call your SLOT. BTW a few yea

[Interest] Never ending thread: blocking GUI

2012-10-16 Thread Sensei
Hi! I am in the middle of a crisis, since I thought I understood threads, but I might be wrong! This is quite easy: I want to start a thread that never ends. Once in a while, when the GUI needs it, it will "wake the thread up", and run a method of my QThread subclass, in my case, a "find in fil

[Interest] QTcpServer memory usage

2012-10-16 Thread Lucas.Betschart
Hi everybody, What happens when I have a QTcpServer which gets a connection that writes much data to it (endless), but I never create a QTcpSocket (with QTcpServer::nextPendingConnection() ) and read this data? Will I the memory usage of my application increase endless? Or will the QTcpServer j