pyotherside 试用

这是啥?
用python写qt

步骤:
安装qt: http://www.qt.io/download-open-source/#section-2
安装python3:
下载源代码 https://github.com/thp/pyotherside
编译 pyotherside:    他主页上有一个简短的说明
    qmake
    make
    make install
    
编译完可以执行个测试     ./tests/tests

运行example程序

F:\wamp\www\git_repos\GitHub\pyotherside>qmlscene F:\wamp\www\git_repos\GitHub\pyotherside\examples\helloworld.qml
qml: PyOtherSide version: 1.4.0
qml: Python version: 3.4.3
qml: python error: Not a parameter list in call to pyotherside.send:
"PyOtherSide error: No module named 'thismoduledoesnotexisthopefully'"
qml: python error: Cannot import module: thismoduledoesnotexisthopefully (No module named 'thismodul
edoesnotexisthopefully')
"PyOtherSide error: invalid syntax (<string>, line 1)"
qml: python error: Cannot evaluate '[ 123 [.syntax234-error!' (invalid syntax (<string>, line 1))
qml: Python module "os" is now imported
qml: python error: Not a parameter list in call to os.chdir:
qml: python error: Not a parameter list in call to os.listdir:
qml: files in /: undefined
qml: dir listing: .git,docs,examples,LICENSE,Makefile,pyotherside.pri,pyotherside.pro,python.pri,REA
DME,src,tests

关于pyotherside的视频:有什么特点,内部是怎样个原理, 怎样用
https://www.youtube.com/watch?v=2HAFOZ5_Xks

Q1: This application failed to start because it could not find or load the Qt platfo rm plugin "windows".

path F:\sw\Qt\Qt5.4.2\5.4\msvc2013_opengl\bin;F:\sw\Qt\Qt5.4.2\Tools\QtCreator\bin;

注意顺序!

Q2:file:///F:/wamp/www/git_repos/GitHub/pyotherside/examples/helloworld.qml:2 module "io.thp.pyotherside" is not installed

file:///F:/wamp/www/git_repos/GitHub/pyotherside/examples/helloworld.qml:2 module "io.thp.pyotherside" plugin "pyothersideplugin" not found

这是因为系统不知道这个plugin在哪里

执行 nmake install就可以

其实他是执行了这两条命令

copy /y "release\pyothersideplugin.dll" "F:\sw\Qt\Qt5.4.2\5.4\msvc2013_opengl\qml\io\thp\pyotherside\pyothersideplugin.dll"
copy /y F:\wamp\www\git_repos\GitHub\pyotherside\src\qmldir F:\sw\Qt\Qt5.4.2\5.4\msvc2013_opengl\qml\io\thp\pyotherside

而dmldir文件内容为

module io.thp.pyotherside
plugin pyothersideplugin

pyotherside 试用的更多相关文章

  1. SharePoint Online 申请试用链接地址

    SharePoint Online 申请试用链接地址: https://products.office.com/en-us/business/compare-office-365-for-busine ...

  2. 活动助手Beta用户试用报告

    用户试用报告 1.面向参与者用户 1.1 日常参加各类学习(水综测)活动中,有没有遇到以下问题: (1) 信息来源混乱,不知道靠不靠谱 (2) 每次报名都要重新填写自己的学号手机号,有时候填错了就没综 ...

  3. 创建WP8试用应用

    参考资料: 创建 Windows Phone 的试用应用 如何在 Windows Phone 应用中实现试用体验 Windows Phone 7 开发 31 日谈——第23日:提供试用版应用程序 对资 ...

  4. 达梦7的试用 与SQLSERVER的简单技术对比

    达梦7的试用 与SQLSERVER的简单技术对比 达梦数据库公司推出了他们的数据库服务管理平台,可以在该平台使用达梦数据库而无须安装达梦7数据库 地址:http://online.dameng.com ...

  5. Beta版本——用户试用与调研报告

    1 引言 1.1 系统概述 ​ 毕设导师智能分配系统是一个用来简化传统手工匹配繁琐操作的系统.本系统将学生报志愿.系负责人收集整理数据.相关人员进行手工分配.反馈选择结果等繁琐的操作转移到线上.把毕设 ...

  6. 【记录】尝试用android-logging-log4j去实现log输出内容到sd卡中的文件的功能

    [背景] 折腾: [记录]给Android中添加log日志输出到文件 期间,已经试了: [记录]尝试用android中microlog4android实现log输出到文件的功能 但是不好用. 然后就是 ...

  7. 代码阅读分析工具Understand 2.0试用

    Understand 2.0是一款源代码阅读分析软件,功能强大.试用过一段时间后,感觉相当不错,确实可以大大提高代码阅读效率.由于Understand功能十分强大,本文不可能详尽地介绍它的所有功能,所 ...

  8. 如何申请国际版Office365和Azure的试用账号

    关键字:国际版.Office365.Azure.试用账号.1美元.信用卡 待续

  9. Android N preview 试用

    一.下载更新包 下载地址:https://developer.android.com/intl/zh-cn/preview/download.html 注意下载适合你手机的安装包哦 二.把你手机的oe ...

随机推荐

  1. mysql日期查询大全

    -- 查询昨日一整天的数据 DAY) ,'%Y-%m-%d 23:59:59') AS '昨日结束时间' -- 查询今日开始到当前时间的数据 DAY) ,'%Y-%m-%d %H:%i:%s') AS ...

  2. 负载均衡中使用 Redis 实现共享 Session

    最近在研究Web架构方面的知识,包括数据库读写分离,Redis缓存和队列,集群,以及负载均衡(LVS),今天就来先学习下我在负载均衡中遇到的问题,那就是session共享的问题. 一.负载均衡 负载均 ...

  3. ubuntu mysql主从库的搭建

    1,首先我们要确定一个从库一个主库,紧记从库只能读取不能有其他的操作,如果操作写那主从就失效了,那就看看我们这么搭建主从吧! 2. 环境:Ubuntu,Mysql (主从的数据库版本必须保持一致) 主 ...

  4. 65. Valid Number *HARD*

    Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => ...

  5. 不能将Lnode * 类型的值分配到Lnode * 类型的实体

    typedef struct { int data; struct Lnode *next;}Lnode,*LinkList; 这个地方有点问题,因为结构体定义中出现了struct Lnode但 Ln ...

  6. vscode使用集

    abotteram.typescript-react-snippets-0.1.9akamud.vscode-javascript-snippet-pack-0.1.5alechp.react-too ...

  7. 小程序中bindtap绑定函数,函数参数event对数据的处理

    WXML: <view id=" bindtap="tapName"> Click me! </view> JS: Page({ tapName: ...

  8. Using XmlHttpRequest 写JSON网页

    代码如下-----xmlhttprequest.responseJSON: <!DOCTYPE html> <html> <head> <meta chars ...

  9. <NET CLR via c# 第4版>笔记 第11章 事件

    11.1 设计要公开事件的类型 11.1.1 第一步: 定义类型来容纳所有需要发送给事件通知接收者的附加信息 //第一步:定义一个类型来容纳所有应该发送给事件通知接收者的附加信息 internal c ...

  10. git账号申请及创建基线

    1.填写注册信息 https://github.com/ 进入官网 填写用户名,邮箱,密码然后点击sign up for github 2.后面不记得了,然后就可以创建项目了 3.填写项目名称及描述, ...