I've been looking for long time code for a combobox with signals and I find this in stackoverflow Como-crear-un-combobox-en-python-con-pyqt5-en-el-cual-sus-valores-dependan-de-l but I need something for MySQL, so I change some things in the code.
You can find the code for MariaDB/MySQL in Github.