Title: isinstance has wrong result for PythonQt widgets · Issue #358 · MeVisLab/pythonqt · GitHub
Open Graph Title: isinstance has wrong result for PythonQt widgets · Issue #358 · MeVisLab/pythonqt
X Title: isinstance has wrong result for PythonQt widgets · Issue #358 · MeVisLab/pythonqt
Description: isinstance returns the wrong result when checking the type of PythonQt widgets. For example, isinstance tells us that QPushButton is not a QWidget. from PythonQt.QtGui import QWidget, QPushButton b = QPushButton() print(isinstance(b, QWi...
Open Graph Description: isinstance returns the wrong result when checking the type of PythonQt widgets. For example, isinstance tells us that QPushButton is not a QWidget. from PythonQt.QtGui import QWidget, QPushButton b...
X Description: isinstance returns the wrong result when checking the type of PythonQt widgets. For example, isinstance tells us that QPushButton is not a QWidget. from PythonQt.QtGui import QWidget, QPushButton b...
Opengraph URL: https://github.com/MeVisLab/pythonqt/issues/358
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"isinstance has wrong result for PythonQt widgets","articleBody":"isinstance returns the wrong result when checking the type of PythonQt widgets. For example, isinstance tells us that QPushButton is not a QWidget.\n\n```\nfrom PythonQt.QtGui import QWidget, QPushButton\n\nb = QPushButton()\nprint(isinstance(b, QWidget))\n# Returns False\n```\n\nAs a workaround QObject.inherits can be used to get the expected result.","author":{"url":"https://github.com/CarstenWalther","@type":"Person","name":"CarstenWalther"},"datePublished":"2026-07-06T07:53:55Z","url":"https://github.com/MeVisLab/pythonqt/issues/358"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:361ab99b-812d-303d-aefa-9e3a6e1fd74c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99CC:1D3E43:278BB0:346EDB:6AFF758B |
| html-safe-nonce | ed3a2820a5dba9b2df004b626310f9cfbee9a8f456d40ccec693395b2a344a6f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUNDOjFEM0U0MzoyNzhCQjA6MzQ2RURCOjZBRkY3NThCIiwidmlzaXRvcl9pZCI6Ijg5MTQyMjg1NTYyMDA4OTk5NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f7e23e05be9914334e0eef50e919369719b99f50731ac711e8ba1b2ce9ee1dec |
| hovercard-subject-tag | issue:4817105273 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MeVisLab/pythonqt/358/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0be0e90a9f89c425a5d17b20598bb784a8206e80e6c9490c0bb843703df28a8/MeVisLab/pythonqt/issues/358 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0be0e90a9f89c425a5d17b20598bb784a8206e80e6c9490c0bb843703df28a8/MeVisLab/pythonqt/issues/358 |
| og:image:alt | isinstance returns the wrong result when checking the type of PythonQt widgets. For example, isinstance tells us that QPushButton is not a QWidget. from PythonQt.QtGui import QWidget, QPushButton b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CarstenWalther |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35e31dc3576ce5a5753c960de52d6fbb2e3131488d65b48fb38a436f42fcbefe |
| turbo-cache-control | no-preview |
| go-import | github.com/MeVisLab/pythonqt git https://github.com/MeVisLab/pythonqt.git |
| octolytics-dimension-user_id | 15028021 |
| octolytics-dimension-user_login | MeVisLab |
| octolytics-dimension-repository_id | 193056137 |
| octolytics-dimension-repository_nwo | MeVisLab/pythonqt |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193056137 |
| octolytics-dimension-repository_network_root_nwo | MeVisLab/pythonqt |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed8a67e95c8353d0d4bc94ad2812a7ecbf91bffa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width