[PyQt] Intro and question

Christian Aubert chris at infixlabs.com
Mon Dec 1 18:24:38 GMT 2008

Right, this is a keyboard shortcut. I'm looking for a modifier that
applies to the mouse click, so that when your ctrl-click or alt-click or
right-click, the button has a different behavior.


Iliya Gogolev wrote:
> Took from Qt API 4.4:
> A command button is rectangular and typically displays a text label
> describing its action. A shortcut key can be specified by preceding the
> preferred character with an ampersand in the text. For example:
>  QPushButton *button = new QPushButton("&Download", this);
> In this example the shortcut is Alt+D. See the QShortcut documentation for
> details (to display an actual ampersand, use '&&').
> -----Original Message-----
> From: pyqt-bounces at riverbankcomputing.com
> [mailto:pyqt-bounces at riverbankcomputing.com] On Behalf Of Christian Aubert
> Sent: Thursday, November 27, 2008 3:27 AM
> To: pyqt at riverbankcomputing.com
> Subject: [PyQt] Intro and question
> Hi everyone,
> Thanks to Mark for telling me about the list. I got started with pyqt
> about 3 months ago, love the functionality, hope to be able to
> contribute here.
> I have a GUI using a QPushButton, does anyone know of a way to use
> modifiers on buttons (CTRL, ALT, Right-click)?
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

More information about the PyQt mailing list