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

**URL:** <https://discourse.julialang.org/t/plots-jl-could-not-create-decoration-from-factory-running-with-no-decorations/137109>\
**Category:** General Usage\
**Tags:** qt, gr, plotsjl\
**Created:** [May 13, 2026, 7:38pm UTC](https://discourse.julialang.org/t/plots-jl-could-not-create-decoration-from-factory-running-with-no-decorations/137109 "2026-05-13T19:38:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [May 13, 2026, 7:38pm UTC](https://discourse.julialang.org/t/plots-jl-could-not-create-decoration-from-factory-running-with-no-decorations/137109/1 "2026-05-13T19:38:49Z")

</div>

I encountered the following problem:

```julia-auto
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:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/1/f198106b0303b1fa913f7b6595c89f49a17d964a.png)

The issue originates from QT.

```julia-auto
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)

```

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [May 13, 2026, 7:42pm UTC](https://discourse.julialang.org/t/plots-jl-could-not-create-decoration-from-factory-running-with-no-decorations/137109/2 "2026-05-13T19:42:34Z")

</div>

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

```julia-auto
julia> ENV["QT_QPA_PLATFORM"] = "xcb"
"xcb"

julia> using Plots

julia> plot(rand(10))

```

This restores the window:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/9/098a8f9b55992a6dabaca57f91040f20e69c073a.png)

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