Plots.jl: Could not create decoration from factory! Running with no decorations

I encountered the following problem:

julia> using Plots

julia> plot(rand(10))

Could not create decoration from factory! Running with no decorations.

I got a plot with no window decorations:

The issue originates from QT.

julia> versioninfo()
Julia Version 1.12.6
Commit 15346901f00 (2026-04-09 19:20 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × AMD FX(tm)-8350 Eight-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, bdver1)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 8 virtual cores)

One fix was to execute the following, setting the environment variable QT_QPA_PLATFORM to "xcb".

julia> ENV["QT_QPA_PLATFORM"] = "xcb"
"xcb"

julia> using Plots

julia> plot(rand(10))

This restores the window:

I’m not quite sure where to file the issue between Plots.jl, QT packages and GRjl.