René's URL Explorer Experiment


Title: Implementing signals and slots · Issue #44 · MeVisLab/pythonqt · GitHub

Open Graph Title: Implementing signals and slots · Issue #44 · MeVisLab/pythonqt

X Title: Implementing signals and slots · Issue #44 · MeVisLab/pythonqt

Description: I'm trying to implement a custom signal and slot but there seem to be a few errors. I can't inherit from QObject(which seems to be the recommended way) as it doesn't exist. This example throws: AttributeError: module 'PythonQt.QtCore' ha...

Open Graph Description: I'm trying to implement a custom signal and slot but there seem to be a few errors. I can't inherit from QObject(which seems to be the recommended way) as it doesn't exist. This example throws: Att...

X Description: I'm trying to implement a custom signal and slot but there seem to be a few errors. I can't inherit from QObject(which seems to be the recommended way) as it doesn't exist. This example...

Opengraph URL: https://github.com/MeVisLab/pythonqt/issues/44

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implementing signals and slots","articleBody":"I'm trying to implement a custom signal and slot but there seem to be a few errors.\r\nI can't inherit from QObject(which seems to be the recommended way) as it doesn't exist. [This](https://sourceforge.net/p/pythonqt/discussion/631393/thread/bbc98b8f/https://sourceforge.net/p/pythonqt/discussion/631393/thread/bbc98b8f/) example throws:\r\n`AttributeError: module 'PythonQt.QtCore' has no attribute 'QObject' `\r\nThe discussion [here](https://sourceforge.net/p/pythonqt/discussion/631393/thread/bbc98b8f/) doesn't seem to be resolved either.\r\n\r\n If I do it without classes like so:\r\n```\r\nfrom PythonQt.QtCore import Signal\r\ndef slot():\r\n    print(\"something\")\r\nsig = Signal(\"QVariant\") # also tried without QVariant\r\nsig.connect(slot)\r\nsig.emit()\r\n```\r\nIt results in a crash due to segmentation fault.\r\nI'm new to Qt itself so would love any suggestions/right way of doing things. Thank You.","author":{"url":"https://github.com/nikhil-sethi","@type":"Person","name":"nikhil-sethi"},"datePublished":"2021-04-13T11:54:46Z","url":"https://github.com/MeVisLab/pythonqt/issues/44"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:317b6d66-4850-77d5-cb70-38708179c1db
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBA8C:11F3D7:1764:1E46:6AFF6C84
html-safe-nonceaa37f7c654794b4c40fbbc8def583e39bf883e5848bb2a515896a5ce459ffa61
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQThDOjExRjNENzoxNzY0OjFFNDY6NkFGRjZDODQiLCJ2aXNpdG9yX2lkIjoiNjA1NTQ5MDEzMzQ4MDY2NDE5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8a2f081148b3a37824ce13e78511e455ff844c7f63e498af455808df90a1c3c9
hovercard-subject-tagissue:856886783
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/MeVisLab/pythonqt/44/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b18580afd696214f0231acd98f380d5c1530d1d2537fe8fbe17b93d445162dec/MeVisLab/pythonqt/issues/44
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b18580afd696214f0231acd98f380d5c1530d1d2537fe8fbe17b93d445162dec/MeVisLab/pythonqt/issues/44
og:image:altI'm trying to implement a custom signal and slot but there seem to be a few errors. I can't inherit from QObject(which seems to be the recommended way) as it doesn't exist. This example throws: Att...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenikhil-sethi
hostnamegithub.com
expected-hostnamegithub.com
None6d580fc7098c193d7866bf290c4c2b4859a153e87379f44161f35a4495e6b730
turbo-cache-controlno-preview
go-importgithub.com/MeVisLab/pythonqt git https://github.com/MeVisLab/pythonqt.git
octolytics-dimension-user_id15028021
octolytics-dimension-user_loginMeVisLab
octolytics-dimension-repository_id193056137
octolytics-dimension-repository_nwoMeVisLab/pythonqt
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id193056137
octolytics-dimension-repository_network_root_nwoMeVisLab/pythonqt
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
releaseec5dd94a369dad6e9ce618a1705cbe3b618a2863
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/MeVisLab/pythonqt/issues/44#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMeVisLab%2Fpythonqt%2Fissues%2F44
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMeVisLab%2Fpythonqt%2Fissues%2F44
Sign uphttps://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=MeVisLab%2Fpythonqt
Reloadhttps://github.com/MeVisLab/pythonqt/issues/44
Reloadhttps://github.com/MeVisLab/pythonqt/issues/44
Reloadhttps://github.com/MeVisLab/pythonqt/issues/44
MeVisLabhttps://github.com/MeVisLab
pythonqthttps://github.com/MeVisLab/pythonqt
Codehttps://github.com/MeVisLab/pythonqt
Issues19 (19)https://github.com/MeVisLab/pythonqt/issues
Pull requests3 (3)https://github.com/MeVisLab/pythonqt/pulls
Discussionshttps://github.com/MeVisLab/pythonqt/discussions
Actionshttps://github.com/MeVisLab/pythonqt/actions
Security and qualityhttps://github.com/MeVisLab/pythonqt/security
Insightshttps://github.com/MeVisLab/pythonqt/insights
https://github.com/MeVisLab/pythonqt
New issuehttps://github.com/login?return_to=https://github.com/MeVisLab/pythonqt/issues/44
New issuehttps://github.com/login?return_to=https://github.com/MeVisLab/pythonqt/issues/44
Implementing signals and slotshttps://github.com/MeVisLab/pythonqt/issues/44#top
bugSomething isn't workinghttps://github.com/MeVisLab/pythonqt/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/nikhil-sethi
nikhil-sethihttps://github.com/nikhil-sethi
on Apr 13, 2021https://github.com/MeVisLab/pythonqt/issues/44#issue-856886783
Thishttps://sourceforge.net/p/pythonqt/discussion/631393/thread/bbc98b8f/https://sourceforge.net/p/pythonqt/discussion/631393/thread/bbc98b8f/
herehttps://sourceforge.net/p/pythonqt/discussion/631393/thread/bbc98b8f/
mrbean-bremenhttps://github.com/mrbean-bremen
bugSomething isn't workinghttps://github.com/MeVisLab/pythonqt/issues?q=state%3Aopen%20label%3A%22bug%22
on Dec 15, 2023https://github.com/MeVisLab/pythonqt/issues/44#event-11260019765
https://github.com/Adi1413
Adi1413https://github.com/Adi1413
on Sep 14, 2025https://github.com/MeVisLab/pythonqt/issues/44#issuecomment-3289569425
https://github.com/usiems
usiemshttps://github.com/usiems
on Sep 30, 2025https://github.com/MeVisLab/pythonqt/issues/44#issuecomment-3352759196
Sign up for freehttps://github.com/signup?return_to=https://github.com/MeVisLab/pythonqt/issues/44
Sign in to commenthttps://github.com/login?return_to=https://github.com/MeVisLab/pythonqt/issues/44
bugSomething isn't workinghttps://github.com/MeVisLab/pythonqt/issues?q=state%3Aopen%20label%3A%22bug%22
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.