
How to close QDialog - Qt Forum
May 31, 2016 · G gabor53 Hi, Which is the best way of closing a dialog? In my program when someone filled out a form have an option to fill out an other one or stop entering new data, in which case I …
Correct way to close a modeless QDialog? - Qt Forum
Jun 6, 2019 · The alternative of overriding the modeless dialog's closeEvent requires changes in the modeless dialog's code, whereas I wanted only to have to make changes in the opener's code (by …
[Solved] Closing a dialog with a timer. - Qt Forum
Apr 16, 2012 · for solving my problem i wanted that all the "Question dialogs" be ,ade child of either timeout dialog or the mydialog2. so that whenever they exit, it is possible to close all the open …
Don't close the window when clicking "OK" QDialog - Qt Forum
Nov 29, 2022 · The OP's question is "Don't close the window when clicking "OK" QDialog", which the above would do? I think they want the authorization to happen upon accepting/clicking the "OK" …
QFileDialog: Close the dialog box opened by getOpenFileName
Apr 2, 2013 · Hello all I need to programmatically close the dialog box opened by QFileDialog:getOpenFileName. I know the parent window of the dialog. This code not work (d...
QDialog doesn't close - Qt Forum
Jun 13, 2016 · also, QMessageBox (like all Dialog box by default) will send back a int answer type object. So "switch ()" C++ function should catch answer back after close. And also, you can give …
Dialog does not close correctly | Qt Forum
Oct 16, 2020 · O OlivierDz Hello, I have a dialog box with a custom "Cancel" button. The "Cancel" button clicked event is connected to the QDialog close slot. When I click this "Cancel" button, all the widgets …
Focus to previous application after closing a dialog - Qt Forum
IshM wrote on 12 May 2017, 14:30 #1 Hello, I am working on a Qt app which is used with a hardware controller. I want to launch a frameless dialog box with keyboard input allowed when a button is …
SOLVED: Quit Application when Dialog closes - Qt Forum
Qatto wrote on 3 Jun 2013, 13:27 #1 Hello, I have been trying to implement a login dialog for my new App but can't get the whole program to quit if the dialog window is closed by a user without …
[Solved] Return value from dialog - Qt Forum
Jun 21, 2014 · The proper way to close the dialog and return from exec () is to call accept () or reject (). This will terminate the exec with a return code of QDialog::Accepted or QDialog::Rejected. You can …