wxQt: Fix window modality when using wxWindowDisabler (PR #26134)

19 views
Skip to first unread message

AliKet

unread,
Jan 29, 2026, 7:10:53 PM (3 days ago) Jan 29
to wx-...@googlegroups.com, Subscribed

To see the problem:

  • Run the printing sample
  • Display the print preview window: File->Print preview... or Ctrl+V
  • The window is incorrectly in a disabled state (see the first image below)
printdemo_bad.png (view on web)

and should look like this:

printdemo_good.png (view on web)

I'll update the documentation once these changes are approved.

TIA!


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26134

Commit Summary

  • 4c0c648 Extend wxWindowDisabler with a constructor to disable the parent window only
  • fe55e51 Add wxQt own implementation of wxWindowDisabler::DoDisable() and destructor.
  • 5a58d5e wxQt: Fix wxPreviewFrame's window modality using wxWindowDisabler

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26134@github.com>

VZ

unread,
Jan 30, 2026, 8:13:08 AM (3 days ago) Jan 30
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.

Sorry, I don't particularly like adding another ctor to wxWindowDisabler as this will make it even more confusing to use (and it's already not great) and I also don't understand why do we need to use this class, whose original purpose was to disable all windows, to disable just the parent?

What is the underlying problem in wxQt that this fixes? I.e. why does disabling the parent doesn't work there? Could we work around this at wxWindow level, somehow?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26134/review/3728201122@github.com>

AliKet

unread,
Jan 30, 2026, 7:11:57 PM (2 days ago) Jan 30
to wx-...@googlegroups.com, Subscribed

Closed #26134.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26134/issue_event/22421324491@github.com>

AliKet

unread,
Jan 30, 2026, 7:12:00 PM (2 days ago) Jan 30
to wx-...@googlegroups.com, Subscribed
AliKet left a comment (wxWidgets/wxWidgets#26134)

Replaced by #26137


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26134/c3826613426@github.com>

Reply all
Reply to author
Forward
0 new messages