[PyKDE] Losing Timers
A problem of losing Timer Events on the Qt interest email archive was solved this way. Set 'qt_win_use_simple_timers' in qapplication_win.cpp to true. The following snippet of code solved it: Q_EXPORT extern bool qt_win_use_simple_timers; void someInitFunction() { ... qt_win_use_simple_timers=true; } Does PyQt allow access to this variable so I can set it? Or how would this best be implemented? Please give me some guidance. Thanks. ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] Losing Timers
On Wednesday 09 July 2003 3:06 pm, Miller, Douglas wrote: A problem of losing Timer Events on the Qt interest email archive was solved this way. Set 'qt_win_use_simple_timers' in qapplication_win.cpp to true. The following snippet of code solved it: Q_EXPORT extern bool qt_win_use_simple_timers; void someInitFunction() { ... qt_win_use_simple_timers=true; } Does PyQt allow access to this variable so I can set it? Or how would this best be implemented? Please give me some guidance. Thanks. You will have to create a function that will set the variable. Put something like the following in (for example)... void set_simple_timers(bool); %MemberCode int s; if (sipParseArgs(sipArgsParsed,sipArgs,i,s) { Q_EXPORT extern bool qt_win_use_simple_timers; qt_win_use_simple_timers = s; Py_INCREF(Py_None); return Py_None; } %End Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Fwd: Re: [PyKDE] Losing Timers
I meant to say, put the following in (for example) qglobal.sip. Phil---BeginMessage--- On Wednesday 09 July 2003 3:06 pm, Miller, Douglas wrote: A problem of losing Timer Events on the Qt interest email archive was solved this way. Set 'qt_win_use_simple_timers' in qapplication_win.cpp to true. The following snippet of code solved it: Q_EXPORT extern bool qt_win_use_simple_timers; void someInitFunction() { ... qt_win_use_simple_timers=true; } Does PyQt allow access to this variable so I can set it? Or how would this best be implemented? Please give me some guidance. Thanks. You will have to create a function that will set the variable. Put something like the following in (for example)... void set_simple_timers(bool); %MemberCode int s; if (sipParseArgs(sipArgsParsed,sipArgs,i,s) { Q_EXPORT extern bool qt_win_use_simple_timers; qt_win_use_simple_timers = s; Py_INCREF(Py_None); return Py_None; } %End Phil ---End Message---