[Solved] Is NULL check needed for 'ui' in qt designer form class
-
Hi,
I know that null check is important to avoid any faults in application. But do I have to do null check for my widgets created in qt designer ??
say...
@SystemScreen::SystemScreen(QWidget *parent) :
QWidget(parent),
ui(new Ui::SystemScreen)
{
qDebug() << Q_FUNC_INFO << "Invoked";
ui->setupUi(this);
ui->tableNewButton->hide();@do I have to make a NULL check for all components when I use them?
@if (NULL != ui->tableNewButton)
{
ui->tableNewButton->hide();
}@