Hello, to hide all of them at once, place them all into WContainerWidget and call .hide() method of it. Then connect .clicked() signals of all buttons to this .hide() slot of WContainerWidget:
WContainerWidget* box_container = new WContainerWidget(root()); container->addWidget(new WCheckBox); WPushButton* button = new WPushButton("Button 1", root()); button->clicked().connect(container, WWidget::hide); Regards, Boris Nagaev On Thu, Oct 24, 2013 at 10:55 AM, amitoj singh <amitojsing...@gmail.com> wrote: > Hello, > > I am working on check boxes. I have created a vector of check boxes > which fetch data from database using loop. I want to hide the check > boxes on clicking any button. Can anyone help me? > > Thanks in advance > > -- > "Never repeat yourself" > Amitoj Singh > slideshare.com/amitoj95 > github.com/amitojsingh > amitojsworld.wordpress.com > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest