Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zenchanhk opened this issue Sep 1, 2018 · 1 comment

Comments

@zenchanhk
Copy link

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

`

@MatthieuDartiailh
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants