Please nominate your Qt Champions for 2021!

Set WM Type for PyQT Application

  • Hello,

    I was wondering if there was a way to set the WM Type (_NET_WM_WINDOW_TYPE(ATOM)) in PyQT to change how XOrg understands the window. Specifically, I'd like to change it from "normal" to "dock."

    I've searched Google far and wide, but it hasn't been of much use. This is the best thing I've found but it doesn't seem plausible in context of PyQT:

    Does anyone know how to do this?


  • @PJBeans

    UPDATE: Figured it out:

    It can be set using setAttribute():

    class MainWindow(QWidget):
        def __init__(self, parent = None):

Log in to reply