its work:
if (QTabWidget *tabwidget
= qobject_cast<QTabWidget
*>
(childrens
[i
])) { ...
}
if (QTabWidget *tabwidget = qobject_cast<QTabWidget*>(childrens[i])) { ... }
To copy to clipboard, switch view to plain text mode
its don`t work
if (((QTabWidget *tabwidget
= qobject_cast<QTabWidget
*>
(childrens
[i
])) && (!allwidgetslist
)) ||
(allwidgetslist
)) {...
}
if (((QTabWidget *tabwidget = qobject_cast<QTabWidget*>(childrens[i])) && (!allwidgetslist)) || (allwidgetslist)) {...}
To copy to clipboard, switch view to plain text mode
Why? Please help :`(
...sory work, but if initialize tabwidget before Condition...
if (((tabwidget = qobject_cast<QTabWidget*>(childrens[i])) && (!allwidgetslist)) || (allwidgetslist))
QTabWidget *tabwidget;
if (((tabwidget = qobject_cast<QTabWidget*>(childrens[i])) && (!allwidgetslist)) || (allwidgetslist))
To copy to clipboard, switch view to plain text mode
Bookmarks