Message 1 of 1
Vred 2024 dock widgets from script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Dock widget list on right click pop up... any idea how to add it there too?
Thanks.