Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Talk:Qt Coding Style
Jump to navigation
Jump to search
A suggestion(Liang Qi, 2015-06-08)
Conditional Operator
- If the statement is too long and need to wrap,
return yourobject.function1()
? result1
: result2;
- For nested conditional operator,
return yourobject.function1()
? yourobject.function2()
? result1_1
: result2_2
: result2;