How fix a window on screen(not draggable)
-
Hello experts,
I am opening a small window on my main window.
For these I am using below code :-@ objCheckLicense = new CheckLicense(this);
objCheckLicense->setModal(true);
objCheckLicense->show();
//for diasble size change
objCheckLicense->setFixedSize(objCheckLicense->size());@Currently I can drag/move these small window on my main window using mouse.
I want to fix these window, I mean not draggable.
Is these possible in QT?
Thanks in advance.
Zain -
Hi Zain,
first of all: What widget type does CheckLicense have?
Is it a dialog?
This has some impact on this question... -
Hello Gerolf,
Thanks for your quick reply and sorry for late response.
Yes, objCheckLicense is a object of QDialog.
Please let me know if you want any other information.
Thanks
Zain -
-
@ManiRon First: do not post in a 6 years old thread - open your own instead.
Second: do not contact people directly like you did here- -
-
@J.Hilk sorry to both of you guys i didnt knew that
And if i want to the frame of the window and i want to make it not draggable , can we do it?
-
@ManiRon
Hi
Its the OS that does the "dragging" so if it has caption, its draggable on most platforms.Can i ask why you want such window ?
-
@mrjj making an application in which i want the Qdialog not to be draggable
-
@ManiRon
ok but its the os that controls it so if Dialog has caption, user are allowed to drag it.
Also on some platforms, one can hold ctrl down and drag the window anyway so
hiding caption does not even work on all platforms.