What is QMenuBar? Is this a part of Qt Creator or something? And which file would it be to be modified, in the bitcoin source code for example?
QMenuBar is the Qt widget that draws the long menu strips at the top of the screen (see above image).
You place a line like this in the same file, right between the <property> tag like this:
<property name="styleSheet">
<string notr="true">QMenuBar { background-color: color:#FFFFFF; }</string>
<string notr="true">QWindow { background-color: color:#FFFFFF; }</string>
</property>
QMenuBar class documentation for anyone interested in readingHi, thank you!
What i meant also is, what file exactly? Like you said " you place a line in the same file " But, which file?
That's the thing, there are no .ui file for the menu bar.
It is only mentioned in the bitcoingui.cpp, it explains in which order are placed the functions:
// Configure the menus
QMenu *file = appMenuBar->addMenu(tr("&File"));
if(walletFrame)
{
file->addAction(openAction);
file->addAction(backupWalletAction);
file->addAction(signMessageAction);
file->addAction(verifyMessageAction);
file->addSeparator();
file->addAction(usedSendingAddressesAction);
file->addAction(usedReceivingAddressesAction);
file->addSeparator();
}
But the bitcoingui.cpp cannot contains any <property> functions which works only with XML code like in the .ui files
