sgh
2nd June 2008, 09:51
hello,
i'v got one sample code and finished to build and it works fine now.
this code is used on qt3 library, but my working is on qt4.
so i tried to port my all codes from qt3 to qt4, rebuild it and result is ok.
i added menu for change my app theme, checking for menuitem isnt working.
i mean proper menuitem is always checking when im clicking it.
here is source code.
tools = new Q3PopupMenu( this, "toolsMenu" );
styleThemes = new Q3PopupMenu( this, "StyleThemes" );
id2007 = styleThemes->insertItem( tr("Office 2007"), this, SLOT(setOffice2007()) );
id2003 = styleThemes->insertItem( tr("Office 2003"), this, SLOT(setOffice2003()) );
styleThemes->setCheckable( TRUE );
styleThemes->setItemChecked(id2007, true);
styleThemes->setItemChecked(id2003, false);
tools->insertItem( QIcon( QPixmap(QString(IMAGE_PATH)+"menuIcons/styletheme.png") ),
tr("Themes"), styleThemes );
can you give me any suggestion for this issue?
thx.
i'v got one sample code and finished to build and it works fine now.
this code is used on qt3 library, but my working is on qt4.
so i tried to port my all codes from qt3 to qt4, rebuild it and result is ok.
i added menu for change my app theme, checking for menuitem isnt working.
i mean proper menuitem is always checking when im clicking it.
here is source code.
tools = new Q3PopupMenu( this, "toolsMenu" );
styleThemes = new Q3PopupMenu( this, "StyleThemes" );
id2007 = styleThemes->insertItem( tr("Office 2007"), this, SLOT(setOffice2007()) );
id2003 = styleThemes->insertItem( tr("Office 2003"), this, SLOT(setOffice2003()) );
styleThemes->setCheckable( TRUE );
styleThemes->setItemChecked(id2007, true);
styleThemes->setItemChecked(id2003, false);
tools->insertItem( QIcon( QPixmap(QString(IMAGE_PATH)+"menuIcons/styletheme.png") ),
tr("Themes"), styleThemes );
can you give me any suggestion for this issue?
thx.