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. QErrorMessage appears behind

QErrorMessage appears behind

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 157 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    During application start-up (Qt 5.9.2 and Qt Creator 4.4.1) if an error occurs I display an error message using QErrorMessage, however the error dialog appears behind the splash screen.

    Is there a way to ensure that any error message is always displayed in-front of everything else, application modal ?

    Kind Regards,
    Sy

    1 Reply Last reply
    0
    • SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #2

      Solved, when error message is created add:

      setWindowFlags(Qt::WindowStaysOnTopHint);
      

      Kind Regards,
      Sy

      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