enaml icon indicating copy to clipboard operation
enaml copied to clipboard

Is it possible to show a context menu on tab area only when right-clicking on the tabs?

Open zenchanhk opened this issue 5 years ago • 1 comments

I'm wondering it is possible to show a context menu on tab area only when right-clicking on the tabs? Just like the following: Context menu on tab If adding a context menu on notebook will display a context menu everywhere inside notebook instead of only on the tab area. `

Notebook: nb:
	tab_style = 'preferences'
	Menu:
		title = 'Futu'
		context_menu = True
		Action:
			text = 'Connect'
			triggered::print('connect...')
		Action:
			text = 'Property'
			triggered::print('property')
	Page:
		title = 'FuTu'
		closable = False

`

zenchanhk avatar Sep 01 '18 15:09 zenchanhk

I don't think it is currently possible. But it may be worth looking into it. I must say I do not know how to implement that on the Qt side.

MatthieuDartiailh avatar Sep 06 '18 04:09 MatthieuDartiailh