patrickelectric/qhot

Non closable Empty window & Remeber window postion

vslmc opened this issue · 2 comments

vslmc commented

I tried to open a .qml and this window will not go away. It's probably the "Click here!" window. The Preview window opens still and works perfect so far.

image

Also I would have a feature request if possible; Save the window postion on live modification

Thank You for this awesome project

I can confirm that this happens on Linux too, but I think this is only happens in a special case. I Think this happens only if your .qml starts with an ApplicationWindow QML Type as the root item. Which probably prevents QHot from being the root item of your widget tree. And then creates an extra window which will be recreated on every reload.

Can you confirm this @SEKKEI ?

Hot reload works well for other the other item i have tested (Linux Fedora WS 33). Still would be nice to find a way to maybe wrap the ApplicationWindow or ignore it if its the root item of the widget tree.

vslmc commented

@smokejohn I had this issue also with 'window' (I didn't try much else, on windows x64 build 21337)
My personal bugfix was to open the qhot.exe in a hex editor and changing 'visible: true ' to 'visible:false' at 8be4
This will disable the click me box entirely

(interestingly you can drop the qhot.exe in the QaterialHotReload Apps root folder and use QT 5.15 instead of 5.12 )