Use KWayland::Client::Registry::createOutput()
createOutput() will ensure that Output wrappers properly handle the ConnectionThread::connectionDied signal.
createOutput() will ensure that Output wrappers properly handle the ConnectionThread::connectionDied signal.