Hi,
first of all thanks for replying me...
well to start
I have kept this context menu for plotting graph..
what i need is when my plotting is running i need to adjust my values at run time...
This is the code which i tried for context menu..
menu->addAction("New Plot");
menu->addAction("Refresh Plot");
menu->addSeparator();
menu->addAction("Reset Plot");
menu->addAction("Change Scalling Speed");
menu->addSeparator();
-------
-------
-------
menu->addSeparator();
menu->addAction("Exit");
connect(menu,
SIGNAL(triggered
(QAction*)),
SLOT(triggeredSlot
(QAction*)));
menu = new QMenu(this);
menu->addAction("New Plot");
menu->addAction("Refresh Plot");
menu->addSeparator();
menu->addAction("Reset Plot");
menu->addAction("Change Scalling Speed");
menu->addSeparator();
-------
-------
-------
menu->addSeparator();
menu->addAction("Exit");
connect(menu, SIGNAL(triggered(QAction*)), SLOT(triggeredSlot(QAction*)));
To copy to clipboard, switch view to plain text mode
[errors]
1>------ Build started: Project: PlottingGraph, Configuration: Release Win32 ------
1>Compiling...
moc_plottinggraph.cpp
plottinggraph.cpp
.\plottinggraph.cpp(58) : error C2065: 'menu' : undeclared identifier
.\plottinggraph.cpp(59) : error C2227: left of '->addAction' must point to class/struct/union/generic type
type is ''unknown-type''
.\plottinggraph.cpp(60) : error C2227: left of '->addAction' must point to class/struct/union/generic type
type is ''unknown-type''
.\plottinggraph.cpp(61) : error C2227: left of '->addAction' must point to class/struct/union/generic type
type is ''unknown-type''
.\plottinggraph.cpp(62) : error C2227: left of '->addSeparator' must point to class/struct/union/generic type
type is ''unknown-type''
.\plottinggraph.cpp(66) : error C2227: left of '->addSeparator' must point to class/struct/union/generic type
type is ''unknown-type''
.\plottinggraph.cpp(67) : error C2227: left of '->addAction' must point to class/struct/union/generic type
type is ''unknown-type''
main.cpp
Generating Code...
PlottingGraph - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[/errors]
please help me..
thanx in advance..
Bookmarks