<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- dialogs.qdoc --> <title>Dialog Windows | Qt Widgets 5.12.6</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td >Dialog Windows</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtwidgets-index.html">Qt 5.12.6 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <link rel="prev" href="mainwindow.html" /> <link rel="next" href="Desktop Integration" /> <p class="naviNextPrevious headerNavi"> <a class="prevPage" href="mainwindow.html">Application Main Window</a> <span class="naviSeparator"> ◦ </span> <a class="nextPage" href="Desktop Integration">Desktop Integration</a> </p><p/> <div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Dialog Windows</h1> <span class="subtitle"></span> <!-- $$$dialogs.html-description --> <div class="descr"> <a name="details"></a> <p>Dialogs can be <i>modal</i>, in which case the user is required to provide necessary information before work in the main window can continue, or <i>modeless</i>. Modeless dialogs do not prevent the user from interacting with any of the other windows in the application.</p> <p>Qt provides a set of ready-made dialogs for file, font, color-selection and more.</p> <div class="table"><table class="annotated"> <tr class="odd topAlign"><td class="tblName"><p><a href="qcolordialog.html">QColorDialog</a></p></td><td class="tblDescr"><p>Dialog widget for specifying colors</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qfiledialog.html">QFileDialog</a></p></td><td class="tblDescr"><p>Dialog that allow users to select files or directories</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qfontdialog.html">QFontDialog</a></p></td><td class="tblDescr"><p>Dialog widget for selecting a font</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qinputdialog.html">QInputDialog</a></p></td><td class="tblDescr"><p>Simple convenience dialog to get a single value from the user</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qmessagebox.html">QMessageBox</a></p></td><td class="tblDescr"><p>Modal dialog for informing the user or for asking the user a question and receiving an answer</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qprogressdialog.html">QProgressDialog</a></p></td><td class="tblDescr"><p>Feedback on the progress of a slow operation</p></td></tr> </table></div> <p>Custom dialogs can be easily created by composing regular widgets into a <a href="qdialog.html">QDialog</a>. These classes are specifically designed for building custom dialogs:</p> <div class="table"><table class="annotated"> <tr class="odd topAlign"><td class="tblName"><p><a href="qdialog.html">QDialog</a></p></td><td class="tblDescr"><p>The base class of dialog windows</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qdialogbuttonbox.html">QDialogButtonBox</a></p></td><td class="tblDescr"><p>Widget that presents buttons in a layout that is appropriate to the current widget style</p></td></tr> </table></div> </div> <!-- @@@dialogs.html --> <p class="naviNextPrevious footerNavi"> <a class="prevPage" href="mainwindow.html">Application Main Window</a> <span class="naviSeparator"> ◦ </span> <a class="nextPage" href="Desktop Integration">Desktop Integration</a> </p> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>