qt: fix qt-error-dialogs inherit type

Running the (3.0) code with --no-qt-error-dialogs asserts.
20 jobs for master in 13 minutes and 10 seconds (queued for 11 seconds)
Status Job ID Name Coverage
  Build
passed android-arm #800172
amd64 docker

00:02:44

passed android-arm64 #800173
amd64 docker

00:03:20

passed android-x86 #800174
amd64 docker

00:02:27

passed android-x86_64 #800175
amd64 docker

00:03:05

passed debian #800163
amd64 docker

00:06:44

passed ios-arm64 #800168
catalina amd64

00:04:13

passed ios-armv7 #800169
catalina amd64

00:04:12

passed ios-simulator-x86_64 #800170
catalina amd64

00:04:22

passed macos-arm64 #800167
catalina amd64

00:05:50

passed macos-x86_64 #800166
catalina amd64

00:06:05

passed raspbian-arm #800165
amd64 docker

00:03:29

passed snap #800164
amd64 docker

00:09:45

passed tvos-arm64 #800171
catalina amd64

00:04:17

passed uwp-arm64-libvlc-llvm #800162
amd64 docker

00:03:22

passed uwp64-libvlc-llvm #800161
amd64 docker

00:04:33

passed wasm32-emscripten-build #800176
amd64 docker

00:04:13

passed win32 #800157
amd64 docker

00:03:46

passed win64 #800158
amd64 docker

00:04:31

passed win64-llvm #800159
amd64 docker

00:05:35

passed win64-ucrt-llvm #800160
amd64 docker

00:04:24