问题标签 [qpushbutton]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
qt - Qt - 已连接但不起作用
我的项目中的一个类有问题,单击后出现带有 QTableWidget 和 QPushButton 的新窗口,单击按钮后我应该在标准输出上进行“测试”,但没有显示,这里是这段代码的一部分:
标题:
构造函数:
方法:
我什至没有一个警告或错误。我在标准输出上什么都没有,看起来按钮连接到错误的对象(?)
excel - Qt - 如何将我的 QTableView 保存为 Excel 文件?
谁能帮助我,如何将我的QtableView保存为 Excel 文件。我有一个QTableView和 一个 QPushButton(保存按钮)。如果我在我的 QtableView 中输入值并且如果我单击保存按钮 QTableView 项目应保存为 Excel 文件。请帮助我。谢谢..
qt - Qt - 如何展开或折叠我的 QTableView
我有一个QTableView,里面有一些项目。如果我单击任何行,则该特定行必须在其中扩展一些 QPushButtons。我附上了它的屏幕截图。我怎样才能做到这一点?需要你的帮助。提前致谢。
qt4 - Qt - Windows 7 基本主题下禁用 QPushButton 的样式表
我可以使用StyleSheets更改QPushButton的字体和字体颜色。问题是在旧的 Windows 主题下,禁用的按钮显示阴影字体,但我不知道如何通过 StyleSheets 摆脱这个阴影前面。任何人都可以请提出你的想法。提前致谢。
qt - 具有自定义形状的 QPushButton
我想让一些按钮看起来像你在 Skype 中看到的按钮。如何QPushButton
使用自定义形状设置样式?我没有这样做的任何想法。所以我需要一些建议。例如,我希望我QPushButton
看起来像这张图片
c++ - 将 QPushButton 信号连接到 QGraphicsView 插槽时出现问题
我无法将 a 中的信号连接QPushButton
到我的QGraphicsView
.
我的按钮标题:
您需要Q_Object
宏来用插槽编译它,但是当我编译时,我不断得到一个未找到的 vtable 引用,如下所示:
当我取出宏时,我可以很好地编译它,但是当我运行时我不断收到这个错误:
我的game_controller
扩展QGRaphicsView
,这是我尝试连接按钮的代码:
任何帮助将不胜感激
c++ - 具体的 QPushButton 样式
如何自定义 QPushButton 或 QToolButton 的外观,使其看起来像elementaryos 的网页“按钮”?
我真正想要的只是特征图像位置和它侧面的文字,也许如果我幸运的话,我也可以得到这样的边框,但我真的不需要标题下面的小描述:) 我能做到吗仅使用 StyleSheets,还是我必须继承 QPushButton/QAbstractButton/类似的东西?我已经到处搜索了,但没有找到那种水平的定制,没有像在固定的地方画东西这样的东西,这正是我不想要的。
编辑:我真的很想要一个解决方案,它会给我一个可定制的按钮,而不是一个固定的图像,一些在轨道上的东西
python - 抓取 PyQt Python ui 文件中的所有 QPushButton
我使用带有大量 QPushButtons 的 Qt Designer 创建了一个 UI 文件,然后我使用 pyuic4 将其转换为 python 文件。
我想将所有 QPushButtons 添加到 QButtonGroup。
如何迭代或获取我的所有 QPushButtons 以从我的 UI Python 文件添加到 QButtonGroup?
qt - Store QLineEdit's data into a QString upon a QPushButton click
I am new to Qt programming. What I want to do is pretty much self explanatory from the title I guess. I have a lineEdit whose data I want to store in a QString when a cretain PushButton is clicked. The problem is the above widgets are inside a graphicsScene so i dont have a on_pushbutton_clicked(); function.
The code for my own solution is below, but as you might have guessed, its not working.
Any kind of help will be greatly appreciated.