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. How do I tell when GUI is fully displayed
Forum Updated to NodeBB v4.3 + New Features

How do I tell when GUI is fully displayed

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 295 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.
  • G Offline
    G Offline
    Grimface
    wrote on last edited by
    #1

    I want to display a message to the user after the GUI has been fully displayed. Is there a signal indicating that the GUI is fully shown on the screen?

    JoeCFDJ 1 Reply Last reply
    0
    • G Grimface

      I want to display a message to the user after the GUI has been fully displayed. Is there a signal indicating that the GUI is fully shown on the screen?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @Grimface override the showEvent of Mainwindow or your main widget.
      https://doc.qt.io/qt-5.15/qwidget.html#showEvent

      G 1 Reply Last reply
      3
      • JoeCFDJ JoeCFD

        @Grimface override the showEvent of Mainwindow or your main widget.
        https://doc.qt.io/qt-5.15/qwidget.html#showEvent

        G Offline
        G Offline
        Grimface
        wrote on last edited by
        #3

        @JoeCFD Thanks Joe I'll take a look into that.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SimonSchroeder
          wrote on last edited by
          #4

          Slightly different idea: If you know what you are doing call repaint instead of update (update might gather a few calls before actually repainting). If repaint is called from the GUI thread it will block until it is done. So, after repaint returns you'll know that it has completed.

          Only don't call repaint too often. This will have really bad performance.

          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