Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread Thiago Macieira
On terça-feira, 19 de março de 2013 09.57.57, K. Frank wrote: > But seriously, does anyone know what the motivation for making sleep > protected might have been? It was meant to be used only in the run() method. And as Frank H. replied, it prevents people from trying to put another thread to sleep

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread K. Frank
Hi Frank! On Tue, Mar 19, 2013 at 10:24 AM, Frank Hemer wrote: On Tuesday 19 March 2013 15:11:03 André Somers wrote: >> Op 19-3-2013 14:57, K. Frank schreef: >> > ... >> > A cross-platform sleep (in a cross-platform framework, at that). What's >> > not to like? >> > >> > But seriously, does any

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread Frank Hemer
On Tuesday 19 March 2013 15:11:03 André Somers wrote: > Op 19-3-2013 14:57, K. Frank schreef: > > Hello Tony! > > > > I have something of a side question, below. > > > > On Tue, Mar 19, 2013 at 2:09 AM, Tony Rietwyk wrote: > >> Hi Ken, > >> ... > >> // Hack to get around Qt strictness... > >>

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread K. Frank
Hi André! On Tue, Mar 19, 2013 at 10:11 AM, André Somers wrote: > Op 19-3-2013 14:57, K. Frank schreef: >> Hello Tony! >> >> I have something of a side question, below. >> ... >> A cross-platform sleep (in a cross-platform framework, at that). What's >> not to like? >> >> But seriously, does any

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread André Somers
Op 19-3-2013 14:57, K. Frank schreef: > Hello Tony! > > I have something of a side question, below. > > On Tue, Mar 19, 2013 at 2:09 AM, Tony Rietwyk wrote: >> Hi Ken, >> ... >> // Hack to get around Qt strictness... >> >> class TSleepThread: public QThread >> { >> public: >>static void sl

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread K. Frank
Hello Tony! I have something of a side question, below. On Tue, Mar 19, 2013 at 2:09 AM, Tony Rietwyk wrote: > Hi Ken, > ... > // Hack to get around Qt strictness... > > class TSleepThread: public QThread > { > public: > static void sleep(unsigned long secs) { QThread::sleep(secs); }; >

Re: [Interest] how to block run function of QRunnable class

2013-03-18 Thread Amogh Kudari
Hi Pengliang, I am not pretty sure but it may be possible as QThreadPoolThread is a friend class of Qrunnable class and QThreadPoolThread is derived from QThread and QThread has the sleep method. Hope this helps. Regards, Amogh. On Tue, Mar 19, 2013 at 8:11 AM, pengliang(彭亮) wrote: > Hi

[Interest] how to block run function of QRunnable class

2013-03-18 Thread 彭亮
Hi all I don’t know how to block run function several seconds of Qrunnable class. Andybody know? Thanks Ken ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest