Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

How to make one window to block another

A Esad answered on February 2, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • move a window that is off-screen windows 11
  • shortcut move window to other side screen
  • How do we switch to another window using its handle?

  • How to make one window to block another

    0

    Use method QWidget.setWindowModality (self, Qt.WindowModality windowModality) . A modal window is one that blocks input to other windows. Note that windows that are children of a modal window are not blocked.

    Add this line in your initial method;

    self.modal.setWindowModality(QtCore.Qt.ApplicationModal)

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Link to this answer
    Share Copy Link
    Contributed on Feb 02 2023
    A Esad
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.