René's URL Explorer Experiment


Title: Stylesheet Test fails (PySide6, Python 3.12) · Issue #102 · PlotPyStack/PythonQwt · GitHub

Open Graph Title: Stylesheet Test fails (PySide6, Python 3.12) · Issue #102 · PlotPyStack/PythonQwt

X Title: Stylesheet Test fails (PySide6, Python 3.12) · Issue #102 · PlotPyStack/PythonQwt

Description: Installing PythonQwt version 0.14.5 into a python 3.12.3 virtual environment together with PySide6 (version 6.9.1) and running the stylesheet testcase results in the following backtrace: Python 3.12.3 (main, Jun 18 2025, 17:59:45) [GCC 1...

Open Graph Description: Installing PythonQwt version 0.14.5 into a python 3.12.3 virtual environment together with PySide6 (version 6.9.1) and running the stylesheet testcase results in the following backtrace: Python 3.1...

X Description: Installing PythonQwt version 0.14.5 into a python 3.12.3 virtual environment together with PySide6 (version 6.9.1) and running the stylesheet testcase results in the following backtrace: Python 3.1...

Opengraph URL: https://github.com/PlotPyStack/PythonQwt/issues/102

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stylesheet Test fails (PySide6, Python 3.12)","articleBody":"Installing `PythonQwt` version 0.14.5 into a python 3.12.3 virtual environment together with `PySide6` (version 6.9.1)  and running the stylesheet testcase results in the following backtrace:\n\n```\nPython 3.12.3 (main, Jun 18 2025, 17:59:45) [GCC 13.3.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e from qwt import tests\n\u003e\u003e\u003e tests.run()\nTraceback (most recent call last):\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/tests/test_stylesheet.py\", line 37, in \u003cmodule\u003e\n    test_stylesheet()\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/tests/test_stylesheet.py\", line 33, in test_stylesheet\n    utils.test_widget(StyleSheetPlot, size=(600, 400))\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/tests/utils.py\", line 301, in test_widget\n    central_widget.add_widget(widget)\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/tests/utils.py\", line 252, in add_widget\n    self.layout().addWidget(widget)\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/plot_canvas.py\", line 582, in event\n    self.updateStyleSheetInfo()\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/plot_canvas.py\", line 809, in updateStyleSheetInfo\n    self.style().drawPrimitive(QStyle.PE_Widget, opt, painter, self)\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/null_paintdevice.py\", line 59, in drawRects\n    device.drawRects(rects, rectCount)\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/plot_canvas.py\", line 80, in drawRects\n    self.border.rectList += [rects.getRect().index(i)]\n                             ^^^^^^^^^^^^^\nAttributeError: Error calling Python override of QFrame::event(): Error calling Python override of QPaintEngine::drawRects(): 'list' object has no attribute 'getRect'\n^X^C^CTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n  File \"/home/martin/.virtualenvs/venv/lib/python3.12/site-packages/qwt/tests/__init__.py\", line 37, in run\n    app.exec()\n``` \nThe other testcases seem to work without trouble. \n\nIt seems that the issue is caused by the handling of the `PySide` backend in the `plotRects` implementation inside `plot_canvas.py`. Something along the lines of this change seems to fix it (with some of the corner cases still present most likely not needed anymore):\n\n```\ndiff --git a/qwt/plot_canvas.py b/qwt/plot_canvas.py\nindex c7c7950..ff8705e 100644\n--- a/qwt/plot_canvas.py\n+++ b/qwt/plot_canvas.py\n@@ -75,9 +75,16 @@ class QwtStyleSheetRecorder(QwtNullPaintDevice):\n             # Pyside\n             if isinstance(rects, (QRect, QRectF)):\n                 self.border.list = [rects]\n+            elif all(isinstance(rects, (QRect, QRectF)):\n+                if isinstance(rects, list):\n+                    self.border.rectList += rects\n+                else:\n+                    # That may not even be necessary\n+                    self.border.rectList += [r for r in rects]\n             else:\n+                # Should we get here ?\n                 for i in range(count):\n-                    self.border.rectList += [rects.getRect().index(i)]\n+                    self.border.rectList += [rects[i]]\n         else:\n             # PyQt\n             for i in range(count):\n``","author":{"url":"https://github.com/martinschwinzerl","@type":"Person","name":"martinschwinzerl"},"datePublished":"2025-07-11T23:36:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/102/PythonQwt/issues/102"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:eea3d833-8a64-1c36-651e-6b62595137fd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEE16:242157:23AB3DA:2EBC20E:69746F5F
html-safe-noncebe9054bb4ec71d2193df16f8bc98417d5bee1531dce7c4fb5ac541259040dc20
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTE2OjI0MjE1NzoyM0FCM0RBOjJFQkMyMEU6Njk3NDZGNUYiLCJ2aXNpdG9yX2lkIjoiNDY1Njg3MTY3MDMxMDc5MzA1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7741da53470b92f25470669bc82057c2f629eba53e2f2f80876b6b4433b35ead
hovercard-subject-tagissue:3224471519
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PlotPyStack/PythonQwt/102/issue_layout
twitter:imagehttps://opengraph.githubassets.com/279710c9762a141dc78beb2bc72b758b883a486287d4706ed992096df1e543a8/PlotPyStack/PythonQwt/issues/102
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/279710c9762a141dc78beb2bc72b758b883a486287d4706ed992096df1e543a8/PlotPyStack/PythonQwt/issues/102
og:image:altInstalling PythonQwt version 0.14.5 into a python 3.12.3 virtual environment together with PySide6 (version 6.9.1) and running the stylesheet testcase results in the following backtrace: Python 3.1...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemartinschwinzerl
hostnamegithub.com
expected-hostnamegithub.com
Nonee0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c
turbo-cache-controlno-preview
go-importgithub.com/PlotPyStack/PythonQwt git https://github.com/PlotPyStack/PythonQwt.git
octolytics-dimension-user_id145201262
octolytics-dimension-user_loginPlotPyStack
octolytics-dimension-repository_id41204495
octolytics-dimension-repository_nwoPlotPyStack/PythonQwt
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id41204495
octolytics-dimension-repository_network_root_nwoPlotPyStack/PythonQwt
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fe7e2e8de6e57740bca50402351ea656f7a4bf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PlotPyStack/PythonQwt/issues/102#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPlotPyStack%2FPythonQwt%2Fissues%2F102
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPlotPyStack%2FPythonQwt%2Fissues%2F102
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PlotPyStack%2FPythonQwt
Reloadhttps://github.com/PlotPyStack/PythonQwt/issues/102
Reloadhttps://github.com/PlotPyStack/PythonQwt/issues/102
Reloadhttps://github.com/PlotPyStack/PythonQwt/issues/102
PlotPyStack https://github.com/PlotPyStack
PythonQwthttps://github.com/PlotPyStack/PythonQwt
Notifications https://github.com/login?return_to=%2FPlotPyStack%2FPythonQwt
Fork 30 https://github.com/login?return_to=%2FPlotPyStack%2FPythonQwt
Star 100 https://github.com/login?return_to=%2FPlotPyStack%2FPythonQwt
Code https://github.com/PlotPyStack/PythonQwt
Issues 7 https://github.com/PlotPyStack/PythonQwt/issues
Pull requests 0 https://github.com/PlotPyStack/PythonQwt/pulls
Actions https://github.com/PlotPyStack/PythonQwt/actions
Projects 0 https://github.com/PlotPyStack/PythonQwt/projects
Wiki https://github.com/PlotPyStack/PythonQwt/wiki
Security 0 https://github.com/PlotPyStack/PythonQwt/security
Insights https://github.com/PlotPyStack/PythonQwt/pulse
Code https://github.com/PlotPyStack/PythonQwt
Issues https://github.com/PlotPyStack/PythonQwt/issues
Pull requests https://github.com/PlotPyStack/PythonQwt/pulls
Actions https://github.com/PlotPyStack/PythonQwt/actions
Projects https://github.com/PlotPyStack/PythonQwt/projects
Wiki https://github.com/PlotPyStack/PythonQwt/wiki
Security https://github.com/PlotPyStack/PythonQwt/security
Insights https://github.com/PlotPyStack/PythonQwt/pulse
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PythonQwt/issues/102
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PythonQwt/issues/102
Stylesheet Test fails (PySide6, Python 3.12)https://github.com/PlotPyStack/PythonQwt/issues/102#top
https://github.com/martinschwinzerl
https://github.com/martinschwinzerl
martinschwinzerlhttps://github.com/martinschwinzerl
on Jul 11, 2025https://github.com/PlotPyStack/PythonQwt/issues/102#issue-3224471519
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.