///
/// Starts a timer and returns a timer identifier, or returns zero if
/// it could not start a timer.
///
/// A timer event will occur every *interval* milliseconds until
/// killTimer() is called. If *interval* is 0, then the timer event
/// occurs once every time there are no more window system events to
/// process.
///
/// The virtual timerEvent() function is called with the QTimerEvent
/// event parameter class when a timer event occurs. Reimplement this
/// function to get timer events.
///
/// If multiple timers are running, the QTimerEvent::timerId() can be
/// used to find out which timer was activated.
///
/// Example:
///
/// Note that QTimer's accuracy depends on the underlying operating system and
/// hardware. The *timerType* argument allows you to customize the accuracy of
/// the timer. See Qt::TimerType for information on the different timer types.
/// Most platforms support an accuracy of 20 milliseconds; some provide more.
/// If Qt is unable to deliver the requested number of timer events, it will
/// silently discard some.
///
/// The QTimer class provides a high-level programming interface with
/// single-shot timers and timer signals instead of events. There is
/// also a QBasicTimer class that is more lightweight than QTimer and
/// less clumsy than using timer IDs directly.
///
/// **See also:** [`timer_event()`]
/// [`kill_timer()`]
/// [`Timer::single_shot`]
///
/// **Overloads**
/// Starts a timer and returns a timer identifier, or returns zero if
/// it could not start a timer.
///
/// A timer event will occur every *time* interval until killTimer()
/// is called. If *time* is equal to `std::chrono::duration::zero()` ,
/// then the timer event occurs once every time there are no more window
/// system events to process.
///
/// The virtual timerEvent() function is called with the QTimerEvent
/// event parameter class when a timer event occurs. Reimplement this
/// function to get timer events.
///
/// If multiple timers are running, the QTimerEvent::timerId() can be
/// used to find out which timer was activated.
///
/// Example:
///
/// Note that QTimer's accuracy depends on the underlying operating system and
/// hardware. The *timerType* argument allows you to customize the accuracy of
/// the timer. See Qt::TimerType for information on the different timer types.
/// Most platforms support an accuracy of 20 milliseconds; some provide more.
/// If Qt is unable to deliver the requested number of timer events, it will
/// silently discard some.
///
/// The QTimer class provides a high-level programming interface with
/// single-shot timers and timer signals instead of events. There is
/// also a QBasicTimer class that is more lightweight than QTimer and
/// less clumsy than using timer IDs directly.
///
/// **See also:** [`timer_event()`]
/// [`kill_timer()`]
/// [`Timer::single_shot`]
Starts a timer and returns a timer identifier, or returns zero if
it could not start a timer.

A timer event will occur every *interval* milliseconds until
killTimer() is called. If *interval* is 0, then the timer event
occurs once every time there are no more window system events to
process.

The virtual timerEvent() function is called with the QTimerEvent
event parameter class when a timer event occurs. Reimplement this
function to get timer events.

If multiple timers are running, the QTimerEvent::timerId() can be
used to find out which timer was activated.



Note that QTimer's accuracy depends on the underlying operating system and
hardware. The *timerType* argument allows you to customize the accuracy of
the timer. See Qt::TimerType for information on the different timer types.
Most platforms support an accuracy of 20 milliseconds; some provide more.
If Qt is unable to deliver the requested number of timer events, it will
silently discard some.

The QTimer class provides a high-level programming interface with
single-shot timers and timer signals instead of events. There is
also a QBasicTimer class that is more lightweight than QTimer and
less clumsy than using timer IDs directly.



Overloads
Starts a timer and returns a timer identifier, or returns zero if
it could not start a timer.

A timer event will occur every *time* interval until killTimer()
is called.

The virtual timerEvent() function is called with the QTimerEvent
event parameter class when a timer event occurs. Reimplement this
function to get timer events.

If multiple timers are running, the QTimerEvent::timerId() can be
used to find out which timer was activated.



Note that QTimer's accuracy depends on the underlying operating system and
hardware. The *timerType* argument allows you to customize the accuracy of
the timer. See Qt::TimerType for information on the different timer types.
Most platforms support an accuracy of 20 milliseconds; some provide more.
If Qt is unable to deliver the requested number of timer events, it will
silently discard some.

The QTimer class provides a high-level programming interface with
single-shot timers and timer signals instead of events. There is
also a QBasicTimer class that is more lightweight than QTimer and
less clumsy than using timer IDs directly.


Starts a timer and returns a timer identifier or returns zero if it could not start a timer . A timer event will occur every * interval * milliseconds until killTimer () is called . If * interval * is 0 then the timer event occurs once every time there are no more window system events to process . The virtual timerEvent () function is called with the QTimerEvent event parameter class when a timer event occurs . Reimplement this function to get timer events . If multiple timers are running the QTimerEvent :: timerId () can be used to find out which timer was activated . Note that QTimer ' s accuracy depends on the underlying operating system and hardware . The * timerType * argument allows you to customize the accuracy of the timer . See Qt :: TimerType for information on the different timer types . Most platforms support an accuracy of 20 milliseconds ; some provide more . If Qt is unable to deliver the requested number of timer events it will silently discard some . The QTimer class provides a high - level programming interface with single - shot timers and timer signals instead of events . There is also a QBasicTimer class that is more lightweight than QTimer and less clumsy than using timer IDs directly . Overloads Starts a timer and returns a timer identifier or returns zero if it could not start a timer . A timer event will occur every * time * interval until killTimer () is called . The virtual timerEvent () function is called with the QTimerEvent event parameter class when a timer event occurs . Reimplement this function to get timer events . If multiple timers are running the QTimerEvent :: timerId () can be used to find out which timer was activated . Note that QTimer ' s accuracy depends on the underlying operating system and hardware . The * timerType * argument allows you to customize the accuracy of the timer . See Qt :: TimerType for information on the different timer types . Most platforms support an accuracy of 20 milliseconds ; some provide more . If Qt is unable to deliver the requested number of timer events it will silently discard some . The QTimer class provides a high - level programming interface with single - shot timers and timer signals instead of events . There is also a QBasicTimer class that is more lightweight than QTimer and less clumsy than using timer IDs directly .
pub fn start_timer(&self, interval: i32, timer_type: TimerType) -> i32 {
        let enum_timer_type_2 = timer_type as u32;
        let (obj_data, funcs) = self.get_object_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).start_timer)(obj_data, interval, enum_timer_type_2);
            ret_val
        }
    }
pub fn start_timer ( & self , interval : i32 , timer_type : TimerType ) -> i32 { let enum_timer_type_2 = timer_type as u32 ; let ( obj_data , funcs ) = self . get_object_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . start_timer ) ( obj_data , interval , enum_timer_type_2 ) ; ret_val } }
Starts a timer and returns a timer identifier, or returns zero if
it could not start a timer.
Starts a timer and returns a timer identifier or returns zero if it could not start a timer .
&self
interval
i32
timer_type
TimerType