Skip to content

fix: copying Quick View statistics to the clipboard failed - #252

Merged
paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/qv-stats-clipboard
Nov 20, 2026
Merged

paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/qv-stats-clipboard

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

The "copy to clipboard" button of the statistics in the Quick View (Plot tool) raised an exception:

AttributeError: module 'PyQt6.QtWidgets' has no attribute 'qApp'

QtWidgets.qApp existed in PyQt5, but not in PyQt6. Now QtWidgets.QApplication.clipboard() is used (like copy_text_to_clipboard in main.py).

New test test_statistics_to_clipboard (fails without the fix). Found during the docs/UI review.

🤖 Generated with Claude Code

`QtWidgets.qApp` does not exist in PyQt6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulmueller
paulmueller merged commit 6bbef40 into DC-analysis:main Nov 20, 2026
3 checks passed
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.06%. Comparing base (1ea8ce4) to head (8afdf5e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #252      +/-   ##
==========================================
+ Coverage   77.01%   77.06%   +0.05%     
==========================================
  Files          76       76              
  Lines        8582     8582              
==========================================
+ Hits         6609     6614       +5     
+ Misses       1973     1968       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants