[QScintilla] Extending QScintilla context menu

Detlev Offenbach detlev at die-offenbachs.de
Tue May 10 17:59:43 BST 2011


On Dienstag, 10. Mai 2011, Phil Thompson wrote:
> 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
> _______________________________________________
> QScintilla mailing list
> QScintilla at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/qscintilla

eric4/5 is creating it's own context menu.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the QScintilla mailing list