howto run commonqt asynchronously
Orm Finnendahl
orm.finnendahl at selma.hfmdk-frankfurt.de
Tue Jan 5 21:25:12 UTC 2016
Am Dienstag, den 05. Januar 2016 um 02:23:33 Uhr (+0300) schrieb Ivan Shvedunov:
> Don't create/exec QApplication when you're using qt-repl,
> it's already created for you.
> Put that into separate function and only call it in "production"
> setting, i.e. when you're not using REPL.
Thanks, that's good to know! Unfortunately the problem remains:
Calling:
(with-objects ((window (#_new QWidget)))
(#_setGeometry window 0 0 300 200)
(#_setWindowTitle window "TestWindow")
(#_show window))
in the qt-repl after (start-gui-thread) doesn't open the window while doing
(ensure-smoke :qtuitools)
(let* ((pathname "/home/orm/work/programmieren/lisp/ui-design/mainwindow.ui")
(ui-loader (#_new QUiLoader))
(ui-file (#_new QFile pathname))
(toplevel (#_load ui-loader
(progn
(#_open ui-file (#_QFile::ReadOnly))
ui-file))))
(#_close ui-file)
(#_delete ui-loader)
(#_show toplevel))
opens the window right away.
Does anybody know why? This is fairly important for me as I need to
create guis algorithmically and can't predefine them with
qt-designer...
--
Orm
More information about the commonqt-devel
mailing list