# Successful rendering of QT & VTK WebAssembly

**URL:** https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439
**Category:** vtk.wasm
**Created:** [May 12, 2023, 3:05am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439 "2023-05-12T03:05:13Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Miranda](https://discourse.vtk.org/user_avatar/discourse.vtk.org/miranda/32/7019_2.png) [@Miranda](https://discourse.vtk.org/u/Miranda)
#### Post date: [May 12, 2023, 3:05am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/1 "2023-05-12T03:05:14Z")

</div>

I’ve successfully rendered QT/VTK WebAssembly.  
Qt version: 6.5  
VTK version: 9.2.5

If you are interested, please DM me!!!

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [May 12, 2023, 6:22pm UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/2 "2023-05-12T18:22:13Z")

</div>

Great job! Can you share a screenshot of what it looks like?

---

<div class="post-metadata">

### Author: ![Miranda](https://discourse.vtk.org/user_avatar/discourse.vtk.org/miranda/32/7019_2.png) [@Miranda](https://discourse.vtk.org/u/Miranda)
#### Post date: [May 14, 2023, 2:24am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/3 "2023-05-14T02:24:05Z")

</div>

Hi, @Sebastien_Jourdain

Sorry for my belated reply

I will share the screenshot asap

current screen is productive version’s screen, so I cant open

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [May 14, 2023, 12:54pm UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/4 "2023-05-14T12:54:55Z")

</div>

Hi @Miranda

Awesome! Would be cool if you can also share the results with the community.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [May 14, 2023, 8:52pm UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/5 "2023-05-14T20:52:05Z")

</div>

I have the screenshot and it is really cool, but I can see why @Miranda can’t share it publicly here. It would be nice if we could capture such recipe as an example in VTK proper for others to learn from.

---

<div class="post-metadata">

### Author: ![Miranda](https://discourse.vtk.org/user_avatar/discourse.vtk.org/miranda/32/7019_2.png) [@Miranda](https://discourse.vtk.org/u/Miranda)
#### Post date: [May 15, 2023, 7:14am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/6 "2023-05-15T07:14:04Z")

</div>

Hi @Jaswant  
I’ll create a sample project so you can check it out and share the results asap.  
Regards

---

<div class="post-metadata">

### Author: ![YaoDongcai](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yaodongcai/32/7110_2.png) [@YaoDongcai](https://discourse.vtk.org/u/YaoDongcai)
#### Post date: [May 19, 2023, 9:29am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/7 "2023-05-19T09:29:59Z")

</div>

Can you share how you did it, thank you!

---

<div class="post-metadata">

### Author: ![Miranda](https://discourse.vtk.org/user_avatar/discourse.vtk.org/miranda/32/7019_2.png) [@Miranda](https://discourse.vtk.org/u/Miranda)
#### Post date: [May 19, 2023, 9:36am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/8 "2023-05-19T09:36:38Z")

</div>

Hi, @YaoDongcai

Since this is implemented in productive project, I need to create temporary projects for everyone.

please wait until I make that

---

<div class="post-metadata">

### Author: ![wangwenx190](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/w/6a8cbe/32.png) [@wangwenx190](https://discourse.vtk.org/u/wangwenx190)
#### Post date: [June 12, 2023, 2:24am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/9 "2023-06-12T02:24:12Z")

</div>

Hi, I’m also exploring this, and is having a really hard time to make VTK works on web assembly, and I haven’t succeed so far. How do you make it work? It seems embeding a SDL2 window into Qt doesn’t play well on Web Assembly.

---

<div class="post-metadata">

### Author: ![Miranda](https://discourse.vtk.org/user_avatar/discourse.vtk.org/miranda/32/7019_2.png) [@Miranda](https://discourse.vtk.org/u/Miranda)
#### Post date: [June 12, 2023, 8:53am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/10 "2023-06-12T08:53:20Z")

</div>

> [@wangwenx190](#):
>
> Assembly

HI, SDL2 is impossible in current version QT, so I’ve developed with other method  
But as you know, I didnt make the temporary project  
so if you need urgently, let’s discuss in my project environment

---

<div class="post-metadata">

### Author: ![wangwenx190](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/w/6a8cbe/32.png) [@wangwenx190](https://discourse.vtk.org/u/wangwenx190)
#### Post date: [June 13, 2023, 6:37am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/11 "2023-06-13T06:37:58Z")

</div>

Sure! I’m still egaring to learn the solution from you! It’s OK that you can’t share the actual code of your project, I just want to know the direction I should be exploring. Where should we have more detailed discussion instead of here (I don’t quite know what your project environment means)?

---

<div class="post-metadata">

### Author: ![Miranda](https://discourse.vtk.org/user_avatar/discourse.vtk.org/miranda/32/7019_2.png) [@Miranda](https://discourse.vtk.org/u/Miranda)
#### Post date: [June 13, 2023, 8:10am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/12 "2023-06-13T08:10:10Z")

</div>

Hi, but Is it okay to talk about other platform?  
I dont know well 😀

---

<div class="post-metadata">

### Author: ![wangwenx190](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/w/6a8cbe/32.png) [@wangwenx190](https://discourse.vtk.org/u/wangwenx190)
#### Post date: [June 13, 2023, 8:50am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/13 "2023-06-13T08:50:50Z")

</div>

Hi, thanks for your reply! I’m not sure about whether we can reference other platforms here as well, but maybe we can use e-mails to have more convenience talks? My e-mail address is [zhaoyuhang@rankyee.com](mailto:zhaoyuhang@rankyee.com) 🙂

---

<div class="post-metadata">

### Author: ![leo](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/c2a13f/32.png) [@leo](https://discourse.vtk.org/u/leo)
#### Post date: [February 1, 2024, 8:26am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/14 "2024-02-01T08:26:12Z")

</div>

Hi, I’m working on this, can you provide some ideas without too much detail?

---

<div class="post-metadata">

### Author: ![amutka](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amutka/32/8800_2.png) [@amutka](https://discourse.vtk.org/u/amutka)
#### Post date: [April 28, 2024, 6:59am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/15 "2024-04-28T06:59:23Z")

</div>

Hi @Miranda,

We’re interested in exploring options for deploying our current QML/VTK solutions to WebAssembly. Could you please share any starter project or hints you’ve discovered?

Thanks,  
Alan ([alan.mutka@gmail.com](mailto:alan.mutka@gmail.com))

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [May 16, 2024, 12:17pm UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/16 "2024-05-16T12:17:36Z")

</div>

> [@wangwenx190](#):
>
> It seems embeding a SDL2 window into Qt doesn’t play well on Web Assembly.

VTK is getting rid of that SDL2 dependency. Soon, it will use plain HTML5 C API from emscripten which should play well with Qt wasm.

---

<div class="post-metadata">

### Author: ![rw2020](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rw2020/32/2709_2.png) [@rw2020](https://discourse.vtk.org/u/rw2020)
#### Post date: [June 9, 2024, 11:55pm UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/17 "2024-06-09T23:55:24Z")

</div>

Any chance you can share a basic project achieving this? On github maybe? Thank you

---

<div class="post-metadata">

### Author: ![Jens\_Munk\_Hansen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jens_munk_hansen/32/1215_2.png) [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)
#### Post date: [July 7, 2024, 4:20pm UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/18 "2024-07-07T16:20:24Z")

</div>

Wouæd be awesome with a working example

---

<div class="post-metadata">

### Author: ![Yose\_Adrian](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yose_adrian/32/9956_2.png) [@Yose\_Adrian](https://discourse.vtk.org/u/Yose_Adrian)
#### Post date: [May 2, 2025, 4:20am UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/19 "2025-05-02T04:20:20Z")

</div>

Hi @Miranda,

Could you share hints that you’ve discovered?

Thanks

Yose ([siyose@gmail.com](mailto:siyose@gmail.com))

---

<div class="post-metadata">

### Author: ![arand0musernam3](https://discourse.vtk.org/user_avatar/discourse.vtk.org/arand0musernam3/32/10103_2.png) [@arand0musernam3](https://discourse.vtk.org/u/arand0musernam3)
#### Post date: [July 1, 2025, 12:14pm UTC](https://discourse.vtk.org/t/successful-rendering-of-qt-vtk-webassembly/11439/20 "2025-07-01T12:14:52Z")

</div>

Hi @Miranda,

Could you share some of the aforementioned hints that you’ve discovered, or any starter projects? We are exploring options for deploying our software in WebAssembly and this would be very much needed.

Thank you for your time,  
Aniol ([arand0musernam3@duck.com](mailto:arand0musernam3@duck.com))
