Menu Item rendering problem
-
Hey!
I've discovered a problem. On my computer, the rendering works perfect. Tried it on another computer and some of the texts looks weird. Added
@
renderType: Text.NativeRendering;
@
everywhere it is possible. This fixed the problem for the Text elements. The rendering of the menu was also corrupted. Added code there, and it works! What is still not working is the rendering of the shortcuts insde of the menuItem elements.@
//File menu
Menu {
title: qsTr("File");
style: MenuStyle {
itemDelegate.label: Text {
text: formatMnemonic(styleData.text, styleData.underlineMnemonic)
color: __currentTextColor
font.pixelSize: __labelFontPixelSize
renderType: Text.NativeRendering
}
}//New project MenuItem{ id: newFile; text: qsTr("New..."); shortcut: "Ctrl+N"; onTriggered: { if(madeList){ newProject.visible = true; } } }
@
As you see, I got it to work under menu, but not under menuItem.
What to do?