import nimqt
import nimqt/[load_ui,qboxlayout]
nimqt.init
let app = newQApplication(commandLineParams())
# We use `curFileDir`, defined in nimqt/load_ui to get the directory of *this* file.
# loadUi works best with absolute paths.
var win:ptr QWidget
win.loadUi("/home/inventorx/t.ui", createConnections=true)
win.show()
discard app.exec()
which is a direct copy of the example loading UI files code, but with rootWg replaced with win does not compile and gives an Error: undeclared identifier: 'rootWg'" error on compile.
The code:
which is a direct copy of the example loading UI files code, but with rootWg replaced with win does not compile and gives an Error: undeclared identifier: 'rootWg'" error on compile.
This does not seem like intended behavior.