QMessageBox not showing detail text
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.
Found the problem, the "message" was being setup as "" on one of the IF statements, so there was nothing to display.