M
me
Hi,
I trying to add a menu bar to my main widget.
The reslut is, that the menus (like file menu) apear and work ok, but
the menubar it self is not being refreshed at all.
I looked at all the documantation I could find, and I cant find what I
am doing wrong...
When my main widget first apears, the area of the menu bar will be
full with what ever is behind the main widget at creation time
(meaning it had no paint event), and will not refresh.
The menus, are responding and visible as expected.
The code below is only the code needed for the display of hte menu bar
and menus that are in it with out the slot connections...)
Can you guys have clue?
Thanks
LutCreator::LutCreator(QWidget *parent, const char *name) :
BaseDlg(parent, name)
{
m_fileMenu = new QPopupMenu;
m_LUTmenu = new QPopupMenu;
m_menuBar = new QMenuBar(this);
m_LUTmenu->insertItem("Lut");
m_menuBar->insertItem("File",m_fileMenu);
m_fileMenu->insertItem("Load Lut");
m_fileMenu->insertItem("Save Lut");
m_menuBar->insertItem("LUT",m_LUTmenu);
[snip]
}
I trying to add a menu bar to my main widget.
The reslut is, that the menus (like file menu) apear and work ok, but
the menubar it self is not being refreshed at all.
I looked at all the documantation I could find, and I cant find what I
am doing wrong...
When my main widget first apears, the area of the menu bar will be
full with what ever is behind the main widget at creation time
(meaning it had no paint event), and will not refresh.
The menus, are responding and visible as expected.
The code below is only the code needed for the display of hte menu bar
and menus that are in it with out the slot connections...)
Can you guys have clue?
Thanks
LutCreator::LutCreator(QWidget *parent, const char *name) :
BaseDlg(parent, name)
{
m_fileMenu = new QPopupMenu;
m_LUTmenu = new QPopupMenu;
m_menuBar = new QMenuBar(this);
m_LUTmenu->insertItem("Lut");
m_menuBar->insertItem("File",m_fileMenu);
m_fileMenu->insertItem("Load Lut");
m_fileMenu->insertItem("Save Lut");
m_menuBar->insertItem("LUT",m_LUTmenu);
[snip]
}