Matic Kukovec
Matic Kukovec
Yes, with `Nim 2.0.8` it works without problems! So it is indeed a compiler regression. Do I close this issue?
Huh, never thought about it, but great idea 👍
Here is the code that reproduces the problem: ```nim # Imports import strformat import nimqt import nimqt / [ qlabel, qlayout, qboxlayout, qgroupbox, qtabwidget, qdrag, qmimedata, qvariant, ] # nimqt...
> Did you encounter this also with earlier compiler versions of nim (or I guess you did not have this code when you were using an older version of nim?)...
Thanks, will try it out today 👍👍 As for the statusbar, I don't need it if I can just use a textbox in it's place.
My current `draw` code: ```nim proc draw*(self: Main) {.slot.} = var node = self rectangle "main": with node: cssEnable false box 0'ux, 0'ux, window_size.width, window_size.height # cornerRadius 0.0 strokeLine 1'ui,...
My updated code: ```nim proc draw*(self: Main) {.slot.} = var node = self # Time display background rectangle "time-background": with node: box offset.left, offset.top, window_size.width, window_size.height / 3.0 fill css"#ffffff"...
Thanks for the `node` explanation 👍 > > > Don't know how to set the background color for Main. > > ... For now just make a rectangle with size...
> With changes your draw would look something like this. Ohhh, I think I do like this better. Even with this: feels less clunky. I agree, seems more intuitive 👍
Confirming that it works (only `cornerRadius 10.0` has to be changed to `cornerRadius 10.0'ui`, I changed it to `0.0'ui`):  👍👍👍 New observations: - `withRootWidget(self):` is awesome 👍 - `with...