Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Issue #101
  • Loading branch information
barche committed Dec 27, 2020
1 parent ff9c467 commit 45daf00
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,18 @@ At the moment, only the 32-bit QImage::Format_RGB32 (alpha, red, green, blue) im

See the example for details on emitting an update signal from julia to force redrawing the JuliaCanvas.

----
**NOTE**

Set

```julia
ENV["QSG_RENDER_LOOP"] = "basic"
```

at the top of your Julia file to avoid crashes or infinite loops when using JuliaCanvas.

----

## Combination with the REPL
When launching the application using `exec`, execution in the REPL will block until the GUI is closed. If you want to continue using the REPL with an active QML gui, `exec_async` provides an alternative. This method keeps the REPL active and polls the QML interface periodically for events, using a timer in the Julia event loop. An example (requiring packages Plots.jl and PyPlot.jl) can be found in `example/repl-background.jl`, to be used as:
Expand Down

0 comments on commit 45daf00

Please sign in to comment.