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. QMessageBox not showing detail text
Qt 6.11 is out! See what's new in the release blog

QMessageBox not showing detail text

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.1k Views
  • 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.
  • Dan3460D Offline
    Dan3460D Offline
    Dan3460
    wrote on last edited by
    #1

    I have a very simple message box, which i want it to show a detail message explaing an error, the message box shows but there is no detail mesage: here is the code. message is a QString declared a couple of lines above this code with some "\n" separating the messages that should make new lines:

    QMessageBox missingData;
    missingData.setWindowTitle("Error Saving Student");
    missingData.setText("There is some missing information");
    missingData.setDetailedText(message);
    missingData.exec();
    

    I goggled around but could not find a similar problem.

    1 Reply Last reply
    0
    • Dan3460D Offline
      Dan3460D Offline
      Dan3460
      wrote on last edited by
      #2

      Found the problem, the "message" was being setup as "" on one of the IF statements, so there was nothing to display.

      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