Vred 2024 dock widgets from script

Vred 2024 dock widgets from script

Bob.Bon2000
Collaborator Collaborator
223 Views
0 Replies
Message 1 of 1

Vred 2024 dock widgets from script

Bob.Bon2000
Collaborator
Collaborator

Hey

How can I make the new fancy dock widgets from script?

 

from PySide6.QtWidgets import *
d = QDockWidget()
main_window_ptr = getMainWindow()
w= wrapInstance(int(main_window_ptr), QMainWindow)
w.addDockWidget(Qt.LeftDockWidgetArea,d)

 

Also it seems that if I make my own QDockWidget and add it to QMainWindow, it no longer shows in the 

BobBon2000_0-1694589277653.png

Dock widget list on right click pop up... any idea how to add it there too?


Thanks.

0 Likes
224 Views
0 Replies
Replies (0)