PyQt5 QSpinBox – Getting System Identifier
In this article we will see how we can get effective window system identifier of the spin box. Effective identifier means the native parent’s window system identifier(ID) of the spin box.
In order to do this we use effectiveWinId method
Syntax : spin_box.effectiveWinId()
Argument : It takes no argument
Return : If the spin box is native, this function returns the native widget ID. Otherwise, the window ID of the first native parent widget, i.e., the top-level widget that contains this spin box, is returned.
Note : This method should be called after the opening of the main window i.e outside the main window class
Below is the implementation
sip.voidptr object at 0x000002A982EED690