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. MessageBox not show before function
Qt 6.12 LTS is out! See what's new in the release blog

MessageBox not show before function

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 770 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1
    QMessageBox box;
    box.setTitle("title");
    box.show;
    //other stuff
    

    I want to show message box to inform user. I do not want to use exec() because user has to click. I just want to show message while function is working.
    But with this code messageBox appear after function. How can I open messageBox before function without using exec()

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      -But with this code messageBox appear after function

      But box is deleted when function ends so im not sure
      how it can be shown after?

      Can you show the real code?

      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