René's URL Explorer Experiment


Title: Using enum elements from C++ Qt Object in python · Issue #71 · MeVisLab/pythonqt · GitHub

Open Graph Title: Using enum elements from C++ Qt Object in python · Issue #71 · MeVisLab/pythonqt

X Title: Using enum elements from C++ Qt Object in python · Issue #71 · MeVisLab/pythonqt

Description: Short In Python not found enum elements from C++ class derived from QObject added to PythonQt via addDecorators() and registerClass(QMetaObject*). Versions Qt 5.12.8 Python 3.8.10 g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 PythonQt master...

Open Graph Description: Short In Python not found enum elements from C++ class derived from QObject added to PythonQt via addDecorators() and registerClass(QMetaObject*). Versions Qt 5.12.8 Python 3.8.10 g++ (Ubuntu 9.4.0...

X Description: Short In Python not found enum elements from C++ class derived from QObject added to PythonQt via addDecorators() and registerClass(QMetaObject*). Versions Qt 5.12.8 Python 3.8.10 g++ (Ubuntu 9.4.0...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using enum elements from C++ Qt Object in python","articleBody":"### Short\r\nIn Python not found enum elements from C++ class derived from QObject added to PythonQt via addDecorators() and registerClass(QMetaObject*).\r\n### Versions\r\nQt 5.12.8   \r\nPython 3.8.10\r\ng++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0  \r\nPythonQt master fb16d6e on 3 Nov 2021   \r\n### Example Code\r\nAdd to std example PyDecoratorsExample\r\n**ExternalWidget.h**\r\n```\r\n#ifndef EXTERNAL_W_HH_\r\n#define EXTERNAL_W_HH_\r\n\r\n#include \u003cQtWidgets/QWidget\u003e\r\n\r\nclass ExternalWidget : public QWidget\r\n{\r\n  Q_OBJECT\r\n\r\npublic:\r\n  enum EType\r\n  {\r\n    Aone,\r\n    Atwo,\r\n    Athree,\r\n    Afour\r\n  };\r\n\r\n  Q_ENUM(EType)\r\n\r\n  ExternalWidget(QWidget* parent = nullptr);\r\n  ~ExternalWidget();\r\n\r\npublic slots:\r\n  void widgetSlot(){};\r\n};\r\n\r\n#endif  // EXTERNAL_W_HH_\r\n```\r\n**ExternalWidget.cpp**  \r\n```\r\n#include \"ExternalWidget.h\"\r\n\r\nExternalWidget::ExternalWidget(QWidget* parent) : QWidget(parent)\r\n{\r\n}\r\n\r\nExternalWidget::~ExternalWidget()\r\n{\r\n}\r\n```\r\nadd to **main.cpp**  \r\n```  \r\nPythonQt::self()-\u003eregisterClass(\u0026ExternalWidget::staticMetaObject, \"QtGui\");\r\n```  \r\nadd to example.py  \r\n```\r\nw = QtGui.ExternalWidget()\r\nw.move(100,100)\r\nw.show()\r\n```  \r\n\r\nadd ExternalWidget.h and ExternalWidget.cpp to HEADERS a SOURCES in **PyDecoratorsExample.pro**  \r\nIn python console can use  \r\n`dir(QtGui.ExternalWidget)`  \r\n\r\nThere are no enum elements  **Aone, Atwo** e.t.c. and enum **EType** \r\n\r\nWhats wrong???  \r\nI try to use Q_ENUMS() and result is the same. :(\r\n","author":{"url":"https://github.com/kwisp","@type":"Person","name":"kwisp"},"datePublished":"2022-05-31T15:55:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/71/pythonqt/issues/71"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8238fb9f-51b0-b1bd-0320-1ea778086286
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD2A:74018:261F139:32BB130:6971C110
html-safe-nonce55b8a680e1bc83d4789c4f472dd5c65b1380463ddd08c76a88d90202b423c3df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDJBOjc0MDE4OjI2MUYxMzk6MzJCQjEzMDo2OTcxQzExMCIsInZpc2l0b3JfaWQiOiI1NzgyNDQ3NTM5MDUwNjI3MzQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac03e029288030a939fd5d407c8d81be08ec40c674c9b2b22c84e15bce15ccaba8
hovercard-subject-tagissue:1254075206
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/71/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cdc2aef38bd11fb5f0aa4c68622128b4195fc365fa59ac9d1a0dd70a7a098e08/MeVisLab/pythonqt/issues/71
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cdc2aef38bd11fb5f0aa4c68622128b4195fc365fa59ac9d1a0dd70a7a098e08/MeVisLab/pythonqt/issues/71
og:image:altShort In Python not found enum elements from C++ class derived from QObject added to PythonQt via addDecorators() and registerClass(QMetaObject*). Versions Qt 5.12.8 Python 3.8.10 g++ (Ubuntu 9.4.0...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekwisp
hostnamegithub.com
expected-hostnamegithub.com
Nonec3b677fea7de290a6c0d1c9ccd6c9909b6a527cf8ee079649e09dc78092d24f1
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
release29d7fcca69cafb91ec8a596aaf222fd46e9bc934
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/71#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FMeVisLab%2Fpythonqt%2Fissues%2F71
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FMeVisLab%2Fpythonqt%2Fissues%2F71
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/71
Reloadhttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/71
Reloadhttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/71
MeVisLab https://patch-diff.githubusercontent.com/MeVisLab
pythonqthttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FMeVisLab%2Fpythonqt
Fork 110 https://patch-diff.githubusercontent.com/login?return_to=%2FMeVisLab%2Fpythonqt
Star 291 https://patch-diff.githubusercontent.com/login?return_to=%2FMeVisLab%2Fpythonqt
Code https://patch-diff.githubusercontent.com/MeVisLab/pythonqt
Issues 18 https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues
Pull requests 3 https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/pulls
Discussions https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/discussions
Actions https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/security
Please reload this pagehttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/71
Insights https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/pulse
Code https://patch-diff.githubusercontent.com/MeVisLab/pythonqt
Issues https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues
Pull requests https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/pulls
Discussions https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/discussions
Actions https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/actions
Security https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/security
Insights https://patch-diff.githubusercontent.com/MeVisLab/pythonqt/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/MeVisLab/pythonqt/issues/71
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/MeVisLab/pythonqt/issues/71
Using enum elements from C++ Qt Object in pythonhttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/71#top
questionFurther information is requestedhttps://github.com/MeVisLab/pythonqt/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/kwisp
https://github.com/kwisp
kwisphttps://github.com/kwisp
on May 31, 2022https://github.com/MeVisLab/pythonqt/issues/71#issue-1254075206
fb16d6ehttps://github.com/MeVisLab/pythonqt/commit/fb16d6e5a773be521ff5dc2b15932a5ccaa0a223
questionFurther information is requestedhttps://github.com/MeVisLab/pythonqt/issues?q=state%3Aopen%20label%3A%22question%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.