Auto Discovered Network Printer Visible in GTK Apps But Not KDE/Qt

I have a printer hooked to a server in my house running Debian. I’m running openSUSE Tumbleweed on my main machine. The printer is auto discovered in GTK apps, but anything KDE/Qt related doesn’t show the printer. The Plasma printer settings show now printers have been discovered. I’ve looked around and everything seems to be installed correctly, but no luck. I’m sure I’m missing something obvious. Any help is much appreciated. Thanks.

edit: The printer is an HP Photosmart c4200 series. I’ve had no issues with it in this configuration with any distro running Gnome or other GTK desktops.

FWIW, here’s a thread describing similar behaviour, but where the user wanted to inhibit such ‘auto discovery’. This post (of same thread) may be of interest to you perhaps.

Except that the automatic remote printer detection in (open)SUSE’s Qt5 has been disabled by default meanwhile (that thread is about Leap 42.3, where it was/is enabled by default), because of problems/complaints.

You’d need to set QT_ENABLE_PRINTER_DISCOVERY=1 now to enable it.

From the package changelog:

* Thu Mar 01 2018
- Rework 0001-Add-remote-print-queue-support.patch so now the remote
  print queue discovery is disabled by default and is only enabled when
  the QT_ENABLE_PRINTER_DISCOVERY environment variable is set
  (QT_DISABLE_PRINTER_DISCOVERY is no longer used).

Awesome. I’ll try setting that and see if it works. Thanks.

I set the environment variable, but the printer still doesn’t automatically appear like it does in GTK. It does appear as a discovered network printer if I go to settings and add printer. However, I have to manually go through the setup to get it working whereas in GTK apps it already is in the printer list and configured. A minor annoyance, but at least this way I can print without issues from all apps.