Closed jsalzbergedu closed 5 years ago
The subwidget is not added to the layout of main
and therefore it is not drawn. Simply defining a subwidget does not make it visible or added to any layouts; you must do it manually.
A roughly done and untested example:
(define-subwidget (main layout) (q+:make-qvboxlayout main))
(define-subwidget (main label)
...
(q+:add-widget layout label))
Lol thank you I suspected that I was just being unintelligent
Not really unintelligent, I would say - if you're only learning the framework and Qt right now, then it's obvious that you'll need some help now and then.
I've tried:
Then ran app-main, found out that the pixmap is not null, yet saw nothing but an empty pane. So how would you load an image and display it?
Thanks.