QProgressDialog Set fixet location.
-
I need users should not be able to drag progressdialog on screen. It should be fixed location on center of window. How can I disable dragging from whrn click and hold on title bar?
Here is my code
QProgressDialog progress( "Progressing", "Cancel", 0, 999999, this) ; progress.setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); progress.setWindowModality(Qt::WindowModal ); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
-
I need users should not be able to drag progressdialog on screen. It should be fixed location on center of window. How can I disable dragging from whrn click and hold on title bar?
Here is my code
QProgressDialog progress( "Progressing", "Cancel", 0, 999999, this) ; progress.setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); progress.setWindowModality(Qt::WindowModal ); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
@mangekoyu Set also Qt::FramelessWindowHint