Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What's the first QEvent after QApplication::exec() called?
Qt 6.12 LTS is out! See what's new in the release blog

What's the first QEvent after QApplication::exec() called?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.2k 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.
  • L Offline
    L Offline
    lygstate
    wrote on last edited by
    #1

    I want to don something in this event.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lygstate
      wrote on last edited by
      #2

      To be clear, I was asking the event for QWidget.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NicuPopescu
        wrote on last edited by
        #3

        Hi,

        perhaps either by reimplementing

        @bool QWidget::winEvent ( MSG * message, long * result ) //this is a hook for widget's window procedure
        @

        or by installing an event filter, and responding to the first ever event dispatched to the widget without being interested in a specific event type

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lygstate
          wrote on last edited by
          #4

          This is for Qt 4.8, I am using Qt 5.1, besides. I wanna to took the first event after the QApplication:exec is called. That's means the QWidget is working now.

          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
          • Unsolved