Question on building a custom dock

redynotredy

New Member
I was wondering how I would go about building a custom dock for obs(not a custom browser dock). I was hoping to do this so that I can have a script to run and take inputs from the dock itself when the start streaming button is pressed. I know obs is open source, but I'm still learning about programming so and help is appreciated. Mainly how I would build a UI for the dock, and how I am supposed to implement this into obs
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Custom docks really have to be done via C++. Docks are Qt widgets, so you'd have to add Qt widgets similarly. They can't be made via scripts.

You'd use Qt, create a QDockWidget, and pass it the obs_frontend_add_dock() function.
 

redynotredy

New Member
Hi sorry for the late reply, is there any way for me to learn how to create a QDockWidget? I just learnt c++ and I googled Qt Dock Widgets and I have no clue how to do this
 

redynotredy

New Member
Sorry, rephrase, in which file should I call the obs_frontend_add_dock() function in order to implement my customised dock?
Custom docks really have to be done via C++. Docks are Qt widgets, so you'd have to add Qt widgets similarly. They can't be made via scripts.

You'd use Qt, create a QDockWidget, and pass it the obs_frontend_add_dock() function.
 
Top