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: [email protected] To: [email protected] 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" <[email protected]> wrote: > > On Mon, Aug 23, 2010 at 12:20 PM, Hugo Leveille <[email protected]> > > 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é > [email protected] > > _______________________________________________ > PyQt mailing list [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
