Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Trying to understand HideEvent
Qt 6.11 is out! See what's new in the release blog

Trying to understand HideEvent

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 574 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    Comparing hideEvent(QHideEvent *) with timerEvent(TimerEvent *)
    in TimerEvent, when event occur, it will compared system timerId() with software timerId().
    If both is similar, it will execute user function.

    For HideEvent, is system timerId compared with software timerId(). Is there sure event? (HideEvent)
    how is it used?

    At the moment, I insert killTimer(timer3) in Timer4Update when timer4 is started.
    likewise for all the timerUpdate. Is this correct.

    @
    void HideEvent(QHideEvent *event)
    {
    killTimer(myTimerid);
    }

    void MainWindow::timerEvent(QTimerEvent *event)
    {
    if (event->timerId()==timer1.timerId())
    Timer1update(); //StationBlink_KBP
    else if (event->timerId()==timer2.timerId())
    Timer2update(); //StationBlink_TP
    else if (event->timerId()==timer3.timerId())
    Timer3update(); // DoorWillOpen
    else if (event->timerId()==timer4.timerId())
    killTimer(timer3.timerId());
    Timer4update(); // DoorHasOpen
    else if (event->timerId()==timer5.timerId())
    killTimer(timer4.timerId());
    Timer5update(); // DoorIsClosing

    }

    @

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved