|
In lugnet.cad.dev, Kevin L. Clague wrote:
> So, popup menus work, but my main menu does not show up.
Just out of curiosity, what IS in the menu bar when the LPub window is the
current active window?
--Travis
|
|
|
In lugnet.cad.dev, Travis Cobbs wrote:
> In lugnet.cad.dev, Kevin L. Clague wrote:
> > So, popup menus work, but my main menu does not show up.
>
> Just out of curiosity, what IS in the menu bar when the LPub window is the
> current active window?
>
> --Travis
All I get is a single menu item in the menu bar above the desktop. It says
LPub. The contents of the menu are not from LPub though.
I've built LPub using QMainWindow. It has a function that returns a pointer to
the menuBar(). I build all my main menus using that.
Maybe you're doing things differently?
Kevin
|
|
|
In lugnet.cad.dev, Kevin L. Clague wrote:
> All I get is a single menu item in the menu bar above the desktop. It says
> LPub. The contents of the menu are not from LPub though.
>
> I've built LPub using QMainWindow. It has a function that returns a pointer to
> the menuBar(). I build all my main menus using that.
>
> Maybe you're doing things differently?
LDView has its main menu inside the .ui file for the main window. It was
created and is maintained in QT Designer. Take a look at LDView.ui to see if
there's anything obviously different there.
--Travis
|
|
|
In lugnet.cad.dev, Travis Cobbs wrote:
> In lugnet.cad.dev, Kevin L. Clague wrote:
> > All I get is a single menu item in the menu bar above the desktop. It says
> > LPub. The contents of the menu are not from LPub though.
> >
> > I've built LPub using QMainWindow. It has a function that returns a pointer to
> > the menuBar(). I build all my main menus using that.
> >
> > Maybe you're doing things differently?
>
> LDView has its main menu inside the .ui file for the main window. It was
> created and is maintained in QT Designer. Take a look at LDView.ui to see if
> there's anything obviously different there.
>
> --Travis
Hmmm..... one major difference is that I didn't use the designer for any of my
GUI.
I wonder if that is why things are different.
Kevin
|
|
|
In lugnet.cad.dev, Kevin L. Clague wrote:
> Hmmm..... one major difference is that I didn't use the designer for any of my
> GUI.
>
> I wonder if that is why things are different.
I'm guessing it's related, but there's presumably something you did that QT
Designer doesn't do, or vice versa. Obviously QT is designed so that apps can
be written completely without using QT Designer.
One thing you might do is create a QMainWindow subclass in QT Designer, add menu
items to that, then set that as the superclass of your current main window
class. See if the Desinger-designed menu shows up.
To be honest, I would think it would be a lot easier to maintain your main menu
using Designer. If the above test menu shows up, you might consider just doing
that and getting rid of your source-code based menu/action building.
--Travis
|
|
|
In lugnet.cad.dev, Kevin L. Clague wrote:
> In lugnet.cad.dev, Travis Cobbs wrote:
> > In lugnet.cad.dev, Kevin L. Clague wrote:
> > > All I get is a single menu item in the menu bar above the desktop. It says
> > > LPub. The contents of the menu are not from LPub though.
> > >
> > > I've built LPub using QMainWindow. It has a function that returns a pointer to
> > > the menuBar(). I build all my main menus using that.
> > >
> > > Maybe you're doing things differently?
> >
> > LDView has its main menu inside the .ui file for the main window. It was
> > created and is maintained in QT Designer. Take a look at LDView.ui to see if
> > there's anything obviously different there.
> >
> > --Travis
>
> Hmmm..... one major difference is that I didn't use the designer for any of my
> GUI.
>
> I wonder if that is why things are different.
>
> Kevin
problem fixed.
extern void qt_mac_set_native_menubar(bool);
qt_mac_set_native_menubar(true);
Kevin
|
|
|
In lugnet.cad.dev, Kevin L. Clague wrote:
> problem fixed.
>
> extern void qt_mac_set_native_menubar(bool);
> qt_mac_set_native_menubar(true);
>
> Kevin
OK, now that's just plain weird. Glad to hear it's fixed, though.
--Travis
|
|
|