Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QMessageBox::critical do not show title text

Tags:

qt

I need to show simple error message

QMessageBox::critical(  nullptr, "My Title", "Text");

But the dialog appears with empty title.

What I do wrong?

PS: the OS: MacOS 10.9.1

like image 414
kaa Avatar asked Feb 20 '14 10:02

kaa


1 Answers

You are doing nothing wrong. From QMessageBox::setWindowTitle documentation:

Sets the title of the message box to title. On Mac OS X, the window title is ignored (as required by the Mac OS X Guidelines).

like image 162
Rud Limaverde Avatar answered Sep 20 '22 14:09

Rud Limaverde