How to display full text in context menu for QHeaderView?
-
Env
Linux x86-64
Qt 6.2.0Problem
The code below works as expected except when it is in
on_MyTreeViewHeader_customContextMenuRequested
QMenu * menu = new QMenu(this); // add some menu entries menu->popup(screen_pos);
The 2nd menu entry is "Delete Fin Period", but it is shortened, and in other cases (e.g.
on_MyTreeView_customContextMenuRequested
) longer menu entries display in full text.Question
Why is it shortened?
How to display full text in context menu for QHeaderView? -
Hi,
IIRC, there's currently a bug in the menu rendering in Qt 6. Did you try with 6.2.1 just in case it was fixed in between ?
-
@SGaist said in How to display full text in context menu for QHeaderView?:
Did you try with 6.2.1 just in case it was fixed in between ?
Not yet, it's not a problem for developing, I'll try it when Qt is upgraded in the official repo of Linux. If it still happens, I'll repost it, mark this post as solved now.
Thanks