[PyQt] Multiple selection using CTRL key
matteo.boscolo at boscolini.eu
matteo.boscolo at boscolini.eu
Mon Aug 23 13:21:57 BST 2010
Hi,
in my open application,PythonCAD , I use the setdragmode as follows .
view.setDragMode(QtGui.QGraphicsView.RubberBandDrag) to activete the rubberbAndDrag, the qt framework did the rest
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qgraphicsview.html#DragMode-enum
Regards,
Matteo
----------------------------------------------------------------------
From: pyqt-bounces at riverbankcomputing.com
To: PyQt at riverbankcomputing.com
Cc:
Date: Mon, 23 Aug 2010 07:53:37 -0400
Subject: Re: [PyQt] Multiple selection using CTRL key
>
> I can still select multiple selections just by dragging the mouse with
> that mode. No controil key needed.
>
>
> On Mon, 23 Aug 2010 13:34 +0200, "fpp" <fpp.gsp at gmail.com> wrote:
> > On Mon, Aug 23, 2010 at 12:20 PM, Hugo Leveille <hugol at fastmail.net>
> > wrote:
> > > hey there
> > > Using QT designer, I have set my listWidget to accept multiple selection. But i have not found a selection method that will allow multiple selection only when control key is pressed ( like in windows for exemple )
> > > What would be the best way to do that?
> >
> > Try extendedSelection ?
> >
>
>
> --
> Hugo Léveillé
> hugol at fastmail.net
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
More information about the PyQt
mailing list