Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.
This repository was archived by the owner on May 17, 2026. It is now read-only.

q+:exec failing #28

Description

@nchodosh

I'm using SBCL 1.3.20 (on Ubuntu 16.04) and I sporadically get the following error when using with-main-window

A simple application lsuch as following:

(define-widget notepad (QWidget)
  ())

(define-subwidget (notepad text-edit) (q+:make-qtextedit))

(define-subwidget (notepad quit-button) 
    (q+:make-qpushbutton "&Quit" notepad))

(define-subwidget (notepad layout) (q+:make-qvboxlayout notepad)
  (q+:add-widget layout text-edit)
  (q+:add-widget layout quit-button))

(define-slot (notepad quit) ()
  (declare (connected quit-button (released)))
   (q+:close notepad))

works the first time I run it. However if the application terminates with an error, or I change the definition of a slot, the next call to qt+:exec starts failing with the error: "QApplicaiton::exec: Must be called from the main thread".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions