To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10761
Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.mac
Date: 
Thu, 27 Mar 2008 16:46:30 GMT
Viewed: 
14944 times
  
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


Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.mac
Date: 
Thu, 27 Mar 2008 17:37:28 GMT
Viewed: 
15028 times
  
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


Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.mac
Date: 
Thu, 27 Mar 2008 19:26:40 GMT
Viewed: 
18724 times
  
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


Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.mac
Date: 
Fri, 28 Mar 2008 15:38:15 GMT
Viewed: 
15027 times
  
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


Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.mac
Date: 
Fri, 28 Mar 2008 17:04:13 GMT
Viewed: 
18653 times
  
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


Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.mac
Date: 
Sat, 29 Mar 2008 22:16:30 GMT
Viewed: 
18956 times
  
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


Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev, lugnet.cad.dev.mac
Date: 
Sat, 29 Mar 2008 22:29:35 GMT
Viewed: 
15481 times
  
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


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR