| Summary: | `Window.showView` does not appear to work | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Sabrina Jewson <sejewson> |
| Component: | Scripting | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.2.9 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/8dd2bdbb4a7644aaf61562ce7a61c797afe674f3 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
This is low-priority because a helpful user on the forum (https://krita-artists.org/t/possible-bug-showview-does-not-appear-to-work/114827) pointed out that View.setVisible still works for the same effect. Git commit 8dd2bdbb4a7644aaf61562ce7a61c797afe674f3 by Dmitry Kazakov, on behalf of Scott Petrovic. Committed on 11/04/2025 at 16:20. Pushed by dkazakov into branch 'master'. M +5 -4 libs/libkis/Window.cpp M +1 -1 libs/libkis/Window.h https://invent.kde.org/graphics/krita/-/commit/8dd2bdbb4a7644aaf61562ce7a61c797afe674f3 |
SUMMARY Window.showView does not do anything. STEPS TO REPRODUCE 1. Open two documents in Krita, open the scripter and paste this code in: w=Krita.instance().activeWindow() print(len(w.views())) # prints 2 w.showView(w.views()[0]) 2. Press “run” and nothing happens. Replace the 0 with a 1 and try again – still nothing happens. EXPECTED BEHAVIOUR The current tab is changed. SOFTWARE/OS VERSIONS Qt Version: 5.15.11