Top "Qpushbutton" questions

QPushButton is a Qt library class that represents ordinary push buttons, and gives the API to manipulate them.

c++ QPushButton signal and slot

i have a problem creating QPushButton with signal and slot. First i was created a class where is slot : class …

c++ qt signals qpushbutton slot
How to tell when a QPushButton is clicked in a QButtonGroup

In my project, I have 40 QPushButtons all put into a QButtonGroup like this: QButtonGroup* group = new QButtonGroup(this); group->…

c++ qt signals-slots qpushbutton
How to set QPushButton stylesheet affecting buttons size?

When I QApplication::setStyleSheet() with the following stylesheet QPushButton { border-radius: 2px; padding: 0.2em 0.2em 0.3em 0.2em; border: 1px solid rgb(100, 100, 100); …

qt stylesheet qpushbutton qtstylesheets
Check the state of QPushButton in PyQt4?

I want to write a if with a condition as the state of QPushButton. I would like to execute if …

python pyqt4 qpushbutton
Qt keyPressEvent, "Hold", and keyReleaseEvent Handling with Buttons/Mouse Clicks

I am writing a Qt program to simulate a piece of hardware and I would like to simulate button press, …

qt qpushbutton qevent
QPushButton setDown on click

When a QPushButton is clicked, I want it to remain pressed down until clicked again. void MainWindow::itemClicked(){ QPushButton *clickedItem = …

c++ qt click qpushbutton mousepress
PyQt5: How to open a new Dialog with button click

import sys from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QApplication, QDialog from PyQt5.uic import loadUi class LoginPage(…

python pyqt pyqt5 qpushbutton qdialog
Displaying numbers with QLCDNumber.display() with PyQt

I am bit new to Qt and python. I have created a simple GUI which consist of a simple calculator. …

python qt pyqt qpushbutton qlcdnumber
How to override just one property:value pair in Qt StyleSheet

I am writing newbie Qt5 code on OSX Mavericks and would like to override just one property:value pair of …

qt qt5 qtstylesheets qpushbutton
How do I assign a shortcut to a QPushButton?

The documentation on assigning a shortcut to a QPushButton is as follows: A shortcut key can be specified by preceding …

c++ qt qpushbutton