Try this:
Change your slot from BUTON_IS_ENABLED ( ) to BUTON_IS_ENABLED ( const QString &text).
Then use
connect( m_ui
->line_edit_1,
SIGNAL( textChanged
(const QString &) ),
this,
SLOT( BUTON_IS_ENABLED
( const QString &) ) );
connect( m_ui->line_edit_1, SIGNAL( textChanged(const QString &) ), this, SLOT( BUTON_IS_ENABLED ( const QString &) ) );
To copy to clipboard, switch view to plain text mode
and chane your slot to
BUTON_IS_ENABLED
( const QString &text
){
m_ui->save_button->setEnabled(!text.isEmpty());
}
BUTON_IS_ENABLED ( const QString &text )
{
m_ui->save_button->setEnabled(!text.isEmpty());
}
To copy to clipboard, switch view to plain text mode
Bookmarks