{"id":31049273,"url":"https://github.com/captemulation/qphidget","last_synced_at":"2025-09-14T21:48:51.203Z","repository":{"id":10121326,"uuid":"12190453","full_name":"CaptEmulation/qphidget","owner":"CaptEmulation","description":"Qt/QML Phidget Library","archived":false,"fork":false,"pushed_at":"2013-10-25T17:24:41.000Z","size":376,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-25T13:09:47.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CaptEmulation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-18T04:46:14.000Z","updated_at":"2022-07-14T22:58:02.000Z","dependencies_parsed_at":"2022-09-09T16:52:00.215Z","dependency_job_id":null,"html_url":"https://github.com/CaptEmulation/qphidget","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/CaptEmulation/qphidget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fqphidget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fqphidget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fqphidget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fqphidget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptEmulation","download_url":"https://codeload.github.com/CaptEmulation/qphidget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptEmulation%2Fqphidget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275174427,"owners_count":25418064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-14T21:48:44.337Z","updated_at":"2025-09-14T21:48:51.189Z","avatar_url":"https://github.com/CaptEmulation.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QPhidget\n\nPhidgets are a collection of USB powered DAIO (Digital/Analog Input/Output) devices rangings from general purpose input/output to specialized modules such as motor control, motion, environment, touch and eletrical sensors.  This project currently supports the basic InterfaceKit module.\n\n## Qt Phidget API\nImplementation of the Phidget API exposed as QtObjects\n\n* Event driven\n* Translate Phidget events to Qt Signal and Slots mechanism\n* QML compatible property bindings\n* Unit tests including a mock implemenation of the Phidget21 API\n\n## Usage\n\n### From C++\n```\n// Create the phidget object\nQP888Device *interfaceKit = new QP888Device();\n// Connect to one or more signal\nQObject::connect(interfaceKit-\u003einputs().at(0), SIGNAL(stateChanged(bool)), this, SLOT(onInput0StateChanged(bool)));\n// After opening and once the phidget is connected, signals will begin firing on changes\ninterfaceKit-\u003eopen();\n```\n\n### From QML\n```\nimport com.soapbubble.qphidget 1.0\n\nRectangle {\n  width: 360\n  height: 360\n  MouseArea {\n      anchors.fill: parent\n      onClicked: {\n          ifk.output0 = !ifk.output0;\n      }\n  }\n  \n  IFK888 { // QML Item for InterfaceKit 8/8/8\n    id: ifk\n    onInput0Changed: {\n        console.log('Input0: ' + state)\n    }\n  }\n}\n\n\n```\n\n## Building\nBuild has only been tested on Win32 but should be able to compile cross-platform with some additional tweaks to pro files\n\nRequires phidget21 library installed.  See http://www.phidgets.com/docs/Programming_Resources for links to download the library.\n\nBuild qphidget-lib, then qphidget-qml then qphidget (the root example app)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptemulation%2Fqphidget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptemulation%2Fqphidget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptemulation%2Fqphidget/lists"}