python - Python QtCreator and Slots
问题描述
I cannot figure out how to use a simple button,
I used:
QtCreator>New Project>Application>Qt for Python - Window(UIFile)
And name everything test.
I opened form.ui
and drag in a button
I press run and a window with a button shows.
But I cannot get that button to run any code from main.py, I have searched and spent hours upon hours, I know its something simple, I have tried with slots and it just tells me the slot doesn't exist, if I right click the button and press go to slot I just get an error:
error no "ui_form.h"
There must be something I am overlooking, if someone could please point me in the right direction.
解决方案
推荐阅读
- css - 有什么办法可以让 white-space: nowrap 只显示单点 (.)
- terraform - 如何指示 terragrunt 模块的自定义配置文件?
- docker - 连接到安装在另一台本地机器上的守护进程 docker
- python - 如何在激活图像压缩的情况下保存 powerpoint
- netcdf - 如何使用 NCO 提取单个变量。关联变量问题
- javascript - react native:类组件转换为带钩子的函数组件的方法是什么?
- flutter - Flutter - 纵向和横向图像显示的空白
- python - 难以计算一组旋转和移动的椭圆的斜率,有时是倒置的,有时是完全错误的
- python - Python从输出列表中删除逗号和撇号
- android - 数据存储 AndroidStudio