You have to use a custom context menu:
def setupUi(self):
view.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
view.connect(view, QtCore.SIGNAL("customContextMenuRequested(QPoint)",
self.onContext)
def onContext(self):
# Create a menu
menu = QtGui.QMenu
Hi All,
we're trying to have a popup menu on a QListView, but there doesn't seem to be
a way to detect right clicks on those. I'm sure I've done that before and there
was a signal, but it looks like it's gone.
Can anybody give me a hint on how to do that now?
Thanks
Dirk
_
On Monday 25 February 2008, Tim Kornhammar wrote:
> Hi.
>
> >From what I understand the function contentChange(int, int, int) is
>
> implemented but at the same time it does not seem like python accepts the
> following code:
>
> self.connect(self.tabs.docs.getTextEdit(index).document(),
> QtCore.S
On Monday 25 February 2008, Joshua Bronson wrote:
> Hi PyQt list,
> I'm new to PyQt and I'm excited to start using it. After successfully
> installing sip 4.7.4, I unfortunately ran into problems building PyQt
> 4.3.3. The build goes fine for a while but then ld chokes on some undefined
> symbols.
Hi.
>From what I understand the function contentChange(int, int, int) is
implemented but at the same time it does not seem like python accepts the
following code:
self.connect(self.tabs.docs.getTextEdit(index).document(),
QtCore.SIGNAL('contentsChange(int,
int, int)'), self.MainWindow, QtCore.SL
On Monday 25 February 2008, Giovanni Bajo wrote:
> On 2/25/2008 4:46 PM, Phil Thompson wrote:
> >> Thanks for your change, but this is a showstopper for me, so I guess I
> >> will have to find a different solution. Specifically, I would also need
> >> to remove the attribute and readd it later, etc
On 2/25/2008 4:46 PM, Phil Thompson wrote:
Thanks for your change, but this is a showstopper for me, so I guess I
will have to find a different solution. Specifically, I would also need
to remove the attribute and readd it later, etc.
(The GC issue also worries me, but I have not analyzed its im
On Monday 25 February 2008, Giovanni Bajo wrote:
> On 2/25/2008 3:28 PM, Phil Thompson wrote:
> > 2. Patching will have no effect if the virtual has already been invoked
> > (because there is an internal cache).
>
> Thanks for your change, but this is a showstopper for me, so I guess I
> will have
On 2/25/2008 3:28 PM, Phil Thompson wrote:
2. Patching will have no effect if the virtual has already been invoked
(because there is an internal cache).
Thanks for your change, but this is a showstopper for me, so I guess I
will have to find a different solution. Specifically, I would also ne
Hi PyQt list,
I'm new to PyQt and I'm excited to start using it. After successfully
installing sip 4.7.4, I unfortunately ran into problems building PyQt 4.3.3.
The build goes fine for a while but then ld chokes on some undefined
symbols. A copy of the output is at http://pylonshq.com/pasties/721.
On Mon, Feb 25, 2008 at 3:14 PM, Doug Bell <[EMAIL PROTECTED]> wrote:
>
> Alexandre Badez wrote:
> > Hy,
> >
> > I would like to display a message to my users with a QDialog with only
> > a 'ok' button.
> > But I didn't found any option about this in the QDialog class.
> >
> > Any idea ?
>
>
On Monday 25 February 2008, Giovanni Bajo wrote:
> On 2/25/2008 10:29 AM, Phil Thompson wrote:
> >> ===
> >> from PyQt4.Qt import *
> >> app = QApplication([])
> >> w = QWidget()
> >> L = QVBoxLayout(w)
> >> L.addWidget(QLabel("ciao", w))
> >>
> >
Alexandre Badez wrote:
> Hy,
>
> I would like to display a message to my users with a QDialog with only
> a 'ok' button.
> But I didn't found any option about this in the QDialog class.
>
> Any idea ?
Try QMessageBox.
Doug.
___
PyQt mailing listPy
Hy,
I would like to display a message to my users with a QDialog with only
a 'ok' button.
But I didn't found any option about this in the QDialog class.
Any idea ?
--
Alex
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomput
Phil Thompson wrote:
> Tonight's SIP snapshot will allow a Python object that supports the buffer
> interface to be used whenever a char or char * is expected. No need to
> rebuild PyQt.
Great - thanks!
--
http://www.jeremysanders.net/
___
PyQt maili
On 2/25/2008 10:29 AM, Phil Thompson wrote:
===
from PyQt4.Qt import *
app = QApplication([])
w = QWidget()
L = QVBoxLayout(w)
L.addWidget(QLabel("ciao", w))
called_class = []
class MyScrollArea(QScrollArea):
def sizeHint(self):
On Friday 22 February 2008, Giovanni Bajo wrote:
> Hi,
>
> consider this snippet:
>
> ===
> from PyQt4.Qt import *
> app = QApplication([])
> w = QWidget()
> L = QVBoxLayout(w)
> L.addWidget(QLabel("ciao", w))
>
> called_class = []
> class MyScrol
17 matches
Mail list logo