Help me to decipher the error messages
-
The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.
QAction tempAction; subMenu\[index\]->addAction(" test "); subMenu\[index\]->addAction(tempAction.setCheckable(true));
-
The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.
QAction tempAction; subMenu\[index\]->addAction(" test "); subMenu\[index\]->addAction(tempAction.setCheckable(true));
-
The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.
QAction tempAction; subMenu\[index\]->addAction(" test "); subMenu\[index\]->addAction(tempAction.setCheckable(true));
Don't make a post with a teensy bit of code and no errors, then ask "is someone willing to help?" Because if you don't supply ALL of the information on the problem, the answer is going to be NO. All you're doing is wasting time because now you have to wait for an answer of "Sure!" before you post the rest of the information required to solve the problem, then wait some more for an actual answer.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
-
The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.
QAction tempAction; subMenu\[index\]->addAction(" test "); subMenu\[index\]->addAction(tempAction.setCheckable(true));
Best guess: you're mixing types; which only works for things "typed as object".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
-
The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.
QAction tempAction; subMenu\[index\]->addAction(" test "); subMenu\[index\]->addAction(tempAction.setCheckable(true));
Oh, so we need to pass a little test before we're allowed to respond to your post? How childish.
The difficult we do right away... ...the impossible takes slightly longer.
-
The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.
QAction tempAction; subMenu\[index\]->addAction(" test "); subMenu\[index\]->addAction(tempAction.setCheckable(true));
-
The second line of code does not compile and I get a ton of "helpful" messages. I am asking the forum to help me to understand the messages. I am not asking for RTFM... If somebody is willing to help I will post the errors.
QAction tempAction; subMenu\[index\]->addAction(" test "); subMenu\[index\]->addAction(tempAction.setCheckable(true));
As noted not enough information. And the cause is based on what the exact type (resolved by the compiler) for 'subMenu[index]' So for example from Qt docs a QWidget addAction() method takes a pointer to a QAction. And in that case a char pointer would not work. (I got that by RTFM by the way.)
-
As noted not enough information. And the cause is based on what the exact type (resolved by the compiler) for 'subMenu[index]' So for example from Qt docs a QWidget addAction() method takes a pointer to a QAction. And in that case a char pointer would not work. (I got that by RTFM by the way.)
-
jschell wrote:
I got that by RTFM by the way
Me too, but I couldn't be bothered to edit my original reply. This guy really takes the biscuit (cookie).
I think it's the same cookie under a different name.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I