modal-dialog

Make QDialog modal to operating system

狂风中的少年 提交于 2020-12-31 20:06:33
问题 Is it possible that if a QDialog instance is exec() uted, the entire operating system is blocked until the user closes the dialog? In the following minimal example the dialog blocks only its parent widget but not the OS elements outside of the Qt application. rootwindow.h #ifndef ROOTWINDOW_H #define ROOTWINDOW_H #include <QApplication> #include <QMainWindow> #include <QtDebug> #include <QDialog> #include <QPushButton> #include <QMessageBox> #include <QBoxLayout> class RootWindow : public

Make QDialog modal to operating system

断了今生、忘了曾经 提交于 2020-12-31 20:02:22
问题 Is it possible that if a QDialog instance is exec() uted, the entire operating system is blocked until the user closes the dialog? In the following minimal example the dialog blocks only its parent widget but not the OS elements outside of the Qt application. rootwindow.h #ifndef ROOTWINDOW_H #define ROOTWINDOW_H #include <QApplication> #include <QMainWindow> #include <QtDebug> #include <QDialog> #include <QPushButton> #include <QMessageBox> #include <QBoxLayout> class RootWindow : public

Why ShowDialog-response delayed in async event handlers?

喜夏-厌秋 提交于 2020-11-29 21:36:34
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {

Why ShowDialog-response delayed in async event handlers?

风流意气都作罢 提交于 2020-11-29 21:25:48
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {

Why ShowDialog-response delayed in async event handlers?

对着背影说爱祢 提交于 2020-11-29 21:23:47
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {

Why ShowDialog-response delayed in async event handlers?

╄→尐↘猪︶ㄣ 提交于 2020-11-29 21:22:43
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {

Why ShowDialog-response delayed in async event handlers?

三世轮回 提交于 2020-11-29 21:21:24
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {

Why ShowDialog-response delayed in async event handlers?

落花浮王杯 提交于 2020-11-29 21:20:26
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {

Why ShowDialog-response delayed in async event handlers?

泪湿孤枕 提交于 2020-11-29 21:19:50
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {

Why ShowDialog-response delayed in async event handlers?

情到浓时终转凉″ 提交于 2020-11-29 21:18:33
问题 In my .NET Framework 4.5 Windows Forms project I have an async event handler. In the event handler I open a OpenFileDialog with ShowDialog() . Then I want to do something async with the selected file. But I have some weird behavior: After closing the dialog (with Cancel or OK button) I have got a delay of 9 seconds until the ShowDialog returned with its result. While this time the application is freezed. Here my code: private async void buttonBrowse_Click(object sender, EventArgs e) {