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 -
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 -
-
-
-
@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 ?
-
@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.