AcademySoftwareFoundation / AcademySoftwareFoundation/xstudio

Proper way of creating non-modal Qt window

Open
#63 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
769
Forks
129
Avg merge
9d 1m
Merged PRs (30d)
10

Description

Hi! I can create a modal Qt window via `window.exec_()` but when I try using `show()`, the frame comes up, but the window does not draw.

We have had similar issues with other applications and developed workarounds by hooking up with the host application's tick callback to call `processEvents()` and so to allow redraws and other events to tick.

But I was wondering what is the best approach with non-modal guis in xstudio?

Thank you for reading.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported difference between Qt window.exec_() and show() in xSTUDIO, and trace how the host application's event loop handles the window. Compare the proposed tick-callback/processEvents() workaround with the intended non-modal GUI integration; done requires a documented, agreed approach that allows the window to draw and process events.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.