Project

General

Profile

Actions

Bug #5390

open

Calendar widget shows up after calling WDateEdit::setHidden(false)

Added by Alan Finley over 7 years ago. Updated over 7 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
Start date:
11/01/2016
Due date:
% Done:

0%

Estimated time:

Description

An example:

#include <Wt/WCheckBox>
#include <Wt/WDateEdit>
#include <Wt/WText>

using namespace Wt;

void toggle_date_edit(WCheckBox *cb, WDateEdit *de, WText *t)
{
    de->setHidden(!cb->isChecked());
    t->setHidden(cb->isChecked());
}

Wt::WApplication* createApplication(const Wt::WEnvironment& env)
{
    WApplication *app = new WApplication(env);
    WCheckBox *cb = new WCheckBox("Show WDateEdit", app->root());

    WContainerWidget *cont = new WContainerWidget(app->root());
    WDateEdit *de = new WDateEdit(cont);
    WText *t = new WText("some text", cont);

    de->hide();
    t->show();

    cb->changed().connect(boost::bind(&toggle_date_edit, cb, de, t));

    return app;
}

After I check the "Show WDateEdit" checkbox on, a calendar widget shows up along with WDateEdit itself.

Actions #1

Updated by André Jacobs over 7 years ago

  • Assignee set to André Jacobs
Actions #2

Updated by André Jacobs over 7 years ago

  • Status changed from New to InProgress
Actions #3

Updated by André Jacobs over 7 years ago

  • Status changed from InProgress to Feedback

I was not able to reproduce this bug with the latest version of the master branch. Does your issue occur on a newer version as well?

Actions

Also available in: Atom PDF