René's URL Explorer Experiment


Title: Bind class that accepts object from external package · Issue #55 · MeVisLab/pythonqt · GitHub

Open Graph Title: Bind class that accepts object from external package · Issue #55 · MeVisLab/pythonqt

X Title: Bind class that accepts object from external package · Issue #55 · MeVisLab/pythonqt

Description: Hi, I have simple class: #ifndef __qColadaTreeTEST_h #define __qColadaTreeTEST_h // Qt includes #include // Colada includes #include "qColadaAppExport.h" // h5gt includes #include // has python bindings usin...

Open Graph Description: Hi, I have simple class: #ifndef __qColadaTreeTEST_h #define __qColadaTreeTEST_h // Qt includes #include // Colada includes #include "qColadaAppExport.h" // h5gt includes #include

X Description: Hi, I have simple class: #ifndef __qColadaTreeTEST_h #define __qColadaTreeTEST_h // Qt includes #include <QTreeView> // Colada includes #include "qColadaAppExport.h" // h5gt include...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bind class that accepts object from external package","articleBody":"Hi,\r\n\r\nI have simple class:\r\n```cpp\r\n#ifndef __qColadaTreeTEST_h\r\n#define __qColadaTreeTEST_h\r\n\r\n// Qt includes\r\n#include \u003cQTreeView\u003e\r\n\r\n// Colada includes\r\n#include \"qColadaAppExport.h\"\r\n\r\n// h5gt includes\r\n#include \u003ch5gt/H5File.hpp\u003e  // has python bindings using pybind11 \r\n\r\nclass Q_COLADA_APP_EXPORT qColadaTreeTEST : public QTreeView {\r\n  Q_OBJECT\r\n\r\npublic:\r\n  explicit qColadaTreeTEST(QWidget *parent = nullptr);\r\n  ~qColadaTreeTEST() = default;\r\n\r\npublic slots:\r\n  bool addH5File(h5gt::File file);  // file -  is of type `h5gt::File` -\u003e it has python bindings\r\n};\r\n\r\n#endif\r\n```\r\nas you can see it accepts `h5gt::File file` wich is not Qt based C++ class. But `h5gt` library has python bindings done with `pybind11` so it is accessible from python.\r\n\r\nWhen `qColadaTreeTEST` is binded via PythonQt I cannot call `addH5File` with `h5gt.File` argument as it gives me an error:\r\n```python\r\nimport qColadaAppPythonQt\r\nq = qColadaAppPythonQt.qColadaTreeTEST()\r\n\r\nfrom h5gtpy import h5gt\r\nfile_name = 'D:/test.h5'\r\nfile = h5gt.File(file_name, h5gt.OpenFlag(h5gt.ReadWrite | h5gt.Create | h5gt.Truncate))\r\n\r\nq.addH5File(file)   # here I get the following error:\r\n\r\nTraceback (most recent call last):\r\n  File \"\u003cconsole\u003e\", line 1, in \u003cmodule\u003e\r\nValueError: Called addH5File(h5gt::File file) -\u003e bool with wrong arguments: (\u003ch5gtpy._h5gt.File object at 0x00000285128901F0\u003e,)\r\n```\r\nHow to tell PythonQt that `h5gt::File` C++ class is the same as `h5gtpy._h5gt.File` in Python?\r\n","author":{"url":"https://github.com/kerim371","@type":"Person","name":"kerim371"},"datePublished":"2021-07-20T10:54:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/55/pythonqt/issues/55"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1a487587-bf1a-049d-2a34-59efd9b3381d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB7D0:AD4AF:2335B81:31728FC:6970F382
html-safe-nonce3f0443d125c36efc64c86a4d5f00083b7e27e00d7e68a229165474f11bba935a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0QwOkFENEFGOjIzMzVCODE6MzE3MjhGQzo2OTcwRjM4MiIsInZpc2l0b3JfaWQiOiI1MDQyOTg3NjUzOTY3OTY3MTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb08ad1240337ce37984897d017e77c36046259f861b41c3986cbc6bbc27391d1
hovercard-subject-tagissue:948536730
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/55/issue_layout
twitter:imagehttps://opengraph.githubassets.com/be29c1473666f29a1123fa64810d9e46a7206a3767271f9c7bcf0c7b15dcc2b8/MeVisLab/pythonqt/issues/55
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/be29c1473666f29a1123fa64810d9e46a7206a3767271f9c7bcf0c7b15dcc2b8/MeVisLab/pythonqt/issues/55
og:image:altHi, I have simple class: #ifndef __qColadaTreeTEST_h #define __qColadaTreeTEST_h // Qt includes #include // Colada includes #include "qColadaAppExport.h" // h5gt includes #include
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekerim371
hostnamegithub.com
expected-hostnamegithub.com
Noneb6ca3cb96fa07d8a62b95d681f9dc8fffb49a43f4fea2a5bcac6d8f5107cbf4e
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
released2448578278810c7bf94faa67651ef5adb1abfde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/55#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%2F55
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%2F55
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/55
Reloadhttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/55
Reloadhttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/55
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/55
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/55
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/MeVisLab/pythonqt/issues/55
Bind class that accepts object from external packagehttps://patch-diff.githubusercontent.com/MeVisLab/pythonqt/issues/55#top
questionFurther information is requestedhttps://github.com/MeVisLab/pythonqt/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/kerim371
https://github.com/kerim371
kerim371https://github.com/kerim371
on Jul 20, 2021https://github.com/MeVisLab/pythonqt/issues/55#issue-948536730
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.