Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, March 2005
setting the menubar caption on Mac


Message 1 in thread

I notice on Mac my menubar title is picking up the name of the app 
filename, and not the QMainWindow caption.

What is the proper way to set the menubar title?

-- 
 [ signature omitted ] 

Message 2 in thread

I think this is the behavior that the users expect.  The idea on the Mac is
that the top (ubiquitous) menubar is application-level commands, and in fact
should clue the user in to what application has the focus.  If you make that
caption changed based on what *window* has the focus, this may be confusing
to Mac folks.

Sorry I'm not answering your question, but before you get an answer and go
using it, consider whether you really want to.  Each window within the
application does have a title bar with a caption, so the functionality
you're looking for exists, just not in the place you seem to want it...?

Nathan


On 3/9/05 12:10 PM, "owner-qt-interest@xxxxxxxxxxxxx"
<owner-qt-interest@xxxxxxxxxxxxx> wrote:

> I notice on Mac my menubar title is picking up the name of the app
> filename, and not the QMainWindow caption.
> 
> What is the proper way to set the menubar title?


Message 3 in thread

Nathan Carter wrote:
> I think this is the behavior that the users expect.  The idea on the Mac is
> that the top (ubiquitous) menubar is application-level commands, and in fact
> should clue the user in to what application has the focus.  If you make that
> caption changed based on what *window* has the focus, this may be confusing
> to Mac folks.
> 
> Sorry I'm not answering your question, but before you get an answer and go
> using it, consider whether you really want to.  Each window within the
> application does have a title bar with a caption, so the functionality
> you're looking for exists, just not in the place you seem to want it...?

It turns out that the menubar was getting its name from the physical 
filename of my app on disk. I wanted to have the app name be shorter 
(and not have spaces in it), but it seemed I had to change rename the 
app (and update the Info.plist file) to the longer version of the name, 
which was then displayed in the menu bar.

All I wanted was a way to avoid doing this (like a 
QApplication::setCaption() function), but now that I have done it, I 
guess I will leave it.


-- 
 [ signature omitted ]