[QScintilla] Extending QScintilla context menu
    Phil Thompson 
    phil at riverbankcomputing.com
       
    Tue May 10 16:23:24 BST 2011
    
    
  
On Thu, 5 May 2011 20:56:46 -0500, Christopher Pow
<christopher_pow at hotmail.com> wrote:
> I'm trying to figure out how to extend the context menu of my QScintilla
> widget.  Before I switched to QScintilla I was using a QPlainTextEdit
which
> provides a method "createStandardContextMenu" that you can use in your
> contextMenuEvent.  Since it returns a QMenu it's very easy to
.addAction()
> to the returned menu and .exec() it.  I'm curious if there is or will be
> something like this in QScintilla?  If not, what is the recommended way
for
> extending the context menu?
It might be worth looking at how eric4/5 handle it. I'm happy to add
something to make it easier and/or more Qt-like.
Phil
    
    
More information about the QScintilla
mailing list