M
M
Max Darkleviathan2021-09-27 09:45:16
Qt
Max Darkleviathan, 2021-09-27 09:45:16

How to maximize a window in qt that has been minimized earlier?

I actually minimize the window and open a new one.

void H_Key::on_close_key_clicked()
{
    
    showMinimized();
    Min *mn = new Min;
    mn->show();

}


And then in a new window, when I click on the button, I close this window.
And by code, I managed to call a new one.
And how to open collapsed?

void Min::on_pushButton_clicked()
{
    close();
  
    H_Key *rz = new H_Key;
    rz->showNormal();

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2021-09-27
@Zifix

Nothing can be understood from these snippets of code, make a minimal working draft and give a link to the archive. Also, name your variables and classes properly .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question