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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.