Standard "About" dialog in Qt

Matt Montag picture Matt Montag · Apr 3, 2011 · Viewed 22.7k times · Source

What's the standard way to implement an "About" application dialog in Qt? You know, the kind that pops up when you go Help > About... from the application menu. I'm using Qt Designer to layout my main window, but I don't need anything fancy. It would be nice to do it in 2 lines of code instead of creating a new class or a new form in Qt Designer...

Answer

Frank Osterfeld picture Frank Osterfeld · Apr 3, 2011

You can use QMessageBox::about for simple about dialogs, or write your own QDialog subclass if you need anything more special/fancy.