Below is an example of an error condition.
Please recall that I am pretty much "zero knowledge" on C++; as such, not only may I be wrong in my analysis, but even my terminology may be incorrect.
Example callER: (ARCodeWidget,cpp)
void ARCodeWidget::OnContextMenuRequested()
{
QMenu menu;
menu.addAction(tr("Sort Alphabetically"), this, &ARCodeWidget::SortAlphabetically);
menu.exec(QCursor::pos());
}
Example callEE: (qmenu.h)
public:
explicit QMenu(QWidget *parent = 0);
explicit QMenu(const QString &title, QWidget *parent = 0);
~QMenu();
{...followed by various "addAction" function definitions
Error:
Error (active) E0304 no instance of overloaded function "QMenu::addAction" matches the argument list
argument types are: (QString, ARCodeWidget *, void (ARCodeWidget::*)())
object type is: QMenu
This type of error also appears in other areas:
1. with an indication that there is an argument count mismatch
2. with an indication that the system cannot convert argument {some argument number} from {current type} to {expected type}
Note that the above errors all seem to relate to improper calling of the QMenu class functions. I have only chosen the QMenu example because it seems to be the most numerous as well as the most inconsistent in the various callER functions.
Given that there are a significant number of errors related to QMenu, it may be worth while to determine how many of each error
type there is, fix QMenu to match that majority of the callERs (so they DON'T need to be edited), and change all the remaining CallERs (hopefully a relatively smaller number) to match.
I am hoping that the above is sufficient into to point you in the right direction. Obviously more digging is required, as (for example), I did not include the code related to the
QMenu.addAction function.
As for the "...not a member of..." example, I will have to look at the build results again. And while I certainly understand your text, something like this... "V14.26/std:c++Latest"... would require a "dummy down" explanation.
(Ok, not too dumb...I'll pick it up as you teach me)
Also, I will of course be happy to supply you with my system (or VS) info/configuration...although you may have to coach me as to how to find it.
Thanks
Charlie
Please recall that I am pretty much "zero knowledge" on C++; as such, not only may I be wrong in my analysis, but even my terminology may be incorrect.
Example callER: (ARCodeWidget,cpp)
void ARCodeWidget::OnContextMenuRequested()
{
QMenu menu;
menu.addAction(tr("Sort Alphabetically"), this, &ARCodeWidget::SortAlphabetically);
menu.exec(QCursor::pos());
}
Example callEE: (qmenu.h)
public:
explicit QMenu(QWidget *parent = 0);
explicit QMenu(const QString &title, QWidget *parent = 0);
~QMenu();
{...followed by various "addAction" function definitions
Error:
Error (active) E0304 no instance of overloaded function "QMenu::addAction" matches the argument list
argument types are: (QString, ARCodeWidget *, void (ARCodeWidget::*)())
object type is: QMenu
This type of error also appears in other areas:
1. with an indication that there is an argument count mismatch
2. with an indication that the system cannot convert argument {some argument number} from {current type} to {expected type}
Note that the above errors all seem to relate to improper calling of the QMenu class functions. I have only chosen the QMenu example because it seems to be the most numerous as well as the most inconsistent in the various callER functions.
Given that there are a significant number of errors related to QMenu, it may be worth while to determine how many of each error
type there is, fix QMenu to match that majority of the callERs (so they DON'T need to be edited), and change all the remaining CallERs (hopefully a relatively smaller number) to match.
I am hoping that the above is sufficient into to point you in the right direction. Obviously more digging is required, as (for example), I did not include the code related to the
QMenu.addAction function.
As for the "...not a member of..." example, I will have to look at the build results again. And while I certainly understand your text, something like this... "V14.26/std:c++Latest"... would require a "dummy down" explanation.
(Ok, not too dumb...I'll pick it up as you teach me)
Also, I will of course be happy to supply you with my system (or VS) info/configuration...although you may have to coach me as to how to find it.
Thanks
Charlie