On 18 Apr 2018, at 1:55 am, Scott Bloom <[email protected]> wrote:
> 
> Currently, when the user clicks the context mouse button (right mouse button 
> typically), the caret does not move to the position.
>  
> Im assuming this is intentional, however the extended context help that I 
> need to give, is based on the location of the mouse, not the cursor
>  
> How can I get the line/index for a given QContextMenuEvent * event?

You can use SCI_POSITIONFROMPOINTCLOSE (see the implementation of lineAt() and 
then pass the result to lineIndexFromPosition().

I could add a lineIndexAt().

Phil
_______________________________________________
QScintilla mailing list
[email protected]
https://www.riverbankcomputing.com/mailman/listinfo/qscintilla

Reply via email to