Hi,

To hide the button named btnRemove
ui->btnRemove->setVisible(false);

if you want to make it invisible by default
give the above code in the constructor

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
       ui->btnRemove->setVisible(false);
}

To unhide by clicking the button named unHide

void MainWindow::on_unHide_clicked()
{
    ui->btnRemove->setVisible(true);
}

Regards,
Sreenadh

On Dec 19, 6:24 pm, ganesh <[email protected]> wrote:
> hi,
>    am having a small doubt regarding qt programming,i want a push
> button to be invisible by default and need to make it visible by
> toggling another push button...or need to generate a push button when
> another push button is clicked....if anyone knows pls help me....
>
> Thanks...

-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit 
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]



For details visit the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

Reply via email to