Re: window display error



Dear Wallace,

it seems no-one has answered your question:

            void gkass::on_mnuGardenPresent_activate()
            {
              GardenPresent GardenPresent1(*gkassWindow);
              GardenPresent1.get_window()->show(); 
            } //The window appears on show() and disappears
            after this handler end.

Before the handler function exits, GardenPresent::~GardenPresent() destroys your window. You will need to give the object a longer lifetime. See the similar question by hokie54 and the answer by Daniel Elster.

Mark


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]