Eject v.1 Copyright (c) 2019 JJ Posti <techtimejourney.net> Eject comes with ABSOLUTELY NO WARRANTY; for details see: http://www.gnu.org/copyleft/gpl.html. This is free software, and you are welcome to redistribute it under GPL Version 2, June 1991.
This is a super simple C++ program with dvd drive etc. toggle eject functionality.
Notice that not every drive will support toggle functionality; eject on the other hand should work almost always.
If you need any help setting up your qtcreator environment, see here: https://www.techtimejourney.net/qtcreator-project-compiling-reference/