Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Good evening, I am playing a monopoly style game, when I fall into the cell I would change it to the visibility to be true, now the problem is when the second player rolls, I cannot tell you that if the label is true that I pay a tax
if(ui->lblPropiedadJugador->setVisible(true)){
// Instrucciones de pago
}
It shows me the following error could not convert void to boolean.
Does anyone know if I can solve it, I would appreciate it very much
The function QWidget::setVisible() returns void. You should instead use
if (!ui->lblPropiedadJugador->isHidden()).
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
The community is reviewing whether to reopen this question as of 6 days ago.
Improve this question
I have regex:
(?:(\(\n\s*\[)|(?:,\[))(?<field>.*?)\]\s*(?<properties>.*\n.)
it's working partially as shown here:
https://regex101.com/r/5o3o1f/1
The problem being that my regex so far doesn't capture the data type description if that's interrupted by a newline like in those 2 cases I highlighted in the picture shared.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last year.
Improve this question
No matter the weight I enter, the output is always $3.50; however, it does not make any mistake on java. Can someone tell me what's wrong with it? Thank you.
enter image description here
It's because the first condition weight > 0 is always fulfiled.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm having some problems with my c++ project.
I'm using windows.h and i don't know how to get colors.
Can someone help me?
If you want the color that corresponds to the brush returned by GetSysColorBrush use the GetSysColor function instead. The two functions take the same argument set, just one returns an HBRUSH while the other returns a COLORREF value.
If that is not what you are after you are going to have to provide much more detail.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Can you please help me with how to check CPP files in a project for functions exceeding 'n' number of lines using Clang-Tidy?
You can use the readability-function-size check and set the LineThreshold parameter to your n value.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
if(cout<<"h"){}
this gives me an output
h
Any idea why, I have tried many variations of it and it still works.
That's because the if statement needs to evaluate the condition you give into it, plus, streams are implicitly convertible to bool.