Kumula
8th February 2006, 17:08
Hi there,
after plan A (implementing an application menu as in MacOS, decorated with a nice pixmap) has failed (because of a Qt bug, see http://www.qtcentre.org/forum/showthread.php?t=501), I'm thinking about a plan B. And maybe, this would be easier than a pixmap in the menubar:
So first I ask you if it's possible to make menubar items bold? So that it'll look similar to this:
------------------------------------------------------------------------
Program File Edit View Extras Settings ...
------------------------------------------------------------------------
And secondly, maybe there's a Qt way to detect the systems platform? Something like this pseudo-code:
if (QApplication.platform() == "mac"):
makeMacApplicationMenu(macMenuBar)
makeOtherMenuItems(myMenuBar)
else:
makeMyApplicationMenu(myMenuBar)
makeOtherMenuItems(myMenuBar)
Is there a way with Qt3 (or maybe Qt4) to implement this platform-uniform menu?
Thanks a lot for any advice,
Juergen
after plan A (implementing an application menu as in MacOS, decorated with a nice pixmap) has failed (because of a Qt bug, see http://www.qtcentre.org/forum/showthread.php?t=501), I'm thinking about a plan B. And maybe, this would be easier than a pixmap in the menubar:
So first I ask you if it's possible to make menubar items bold? So that it'll look similar to this:
------------------------------------------------------------------------
Program File Edit View Extras Settings ...
------------------------------------------------------------------------
And secondly, maybe there's a Qt way to detect the systems platform? Something like this pseudo-code:
if (QApplication.platform() == "mac"):
makeMacApplicationMenu(macMenuBar)
makeOtherMenuItems(myMenuBar)
else:
makeMyApplicationMenu(myMenuBar)
makeOtherMenuItems(myMenuBar)
Is there a way with Qt3 (or maybe Qt4) to implement this platform-uniform menu?
Thanks a lot for any advice,
Juergen