qt5

How to change the font color of a MenuBar?

旧巷老猫 提交于 2020-12-01 10:57:19
问题 How can I change the text color of the menu items of a QML MenuBar ? import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.2 import QtQuick.Controls.Styles 1.3 as QtQuickControlStyle ApplicationWindow { title: qsTr("Test") width: 640 height: 480 visible: true property color menuBackgroundColor: "#3C3C3C" property color menuBorderColor: "#282828" menuBar: MenuBar { style: QtQuickControlStyle.MenuBarStyle { padding { left: 8 right: 8 top: 3 bottom: 3