http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252010-11-24T15:34:11ZRedmineWt - Bug #622: WTreeNodes cannot be expanded http://redmine.emweb.be/issues/622?journal_id=15422010-11-24T15:34:11ZKoen Deforchekoen@emweb.be
<ul></ul><p>Hey Christophe,</p>
<p>I cannot easily reproduce this problem --- do you see this problem for example with the widget gallery ?</p>
<p>Regards,<br><br>
koen</p>
Wt - Bug #622: WTreeNodes cannot be expanded http://redmine.emweb.be/issues/622?journal_id=15432010-11-24T17:32:04ZChristophe Delépinechristophe.delepine@thalesgroup.com
<ul></ul><p>Hi Koen,</p>
<p>I have spent quite some time analysing the problem. By simplifying my gui code as much as possible, i think i have isolated the bug :<br><br>
Here is a piece of code :</p>
<pre><code>WContainerWidget* container = new WContainerWidget();
WHBoxLayout *boxLayout = new WHBoxLayout(container);
boxLayout->setContentsMargins(0, 0, 0, 0);
WPanel* panel = new WPanel();
WTree* tree = new WTree();
panel->setCentralWidget(tree);
// fill the tree with nodes...
WStackedWidget* dynamicView = new WStackedWidget();
dynamicView->addWidget(new WContainerWidget());
boxLayout->addWidget(panel);
boxLayout->addWidget(dynamicView_, 1);
</code></pre>
<p>If i replace the line</p>
<pre><code>boxLayout->addWidget(dynamicView_, 1);
</code></pre>
<p>with</p>
<pre><code>boxLayout->addWidget(dynamicView_, 0);
</code></pre>
<p>then it works !</p>
<p>I have other widgets above the container but i have not tried to remove them. I hope that they have no impact.</p>
<p>I can easily change my code to make it work. However, something must have changed between wt-3.1.6 and the current git and only you can tell if this new behavior is normal</p>
<p>Regards<br><br>
Christophe</p>
<p>P.S. the widget gallery project does not compile for non multithreaded builds due to StyleLayout.C. Had to remove this file. The tree works fine there. The problem was specific to my application</p>
Wt - Bug #622: WTreeNodes cannot be expanded http://redmine.emweb.be/issues/622?journal_id=15452010-11-25T09:38:04ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>Hey Christophe,</p>
<p>Thanks a lot for isolating this regression. It has been fixed in latest git.<br><br>
I've also fixed the non-threaded widget gallery build.</p>
<p>Regards,<br><br>
koen</p>
Wt - Bug #622: WTreeNodes cannot be expanded http://redmine.emweb.be/issues/622?journal_id=15512010-11-26T17:14:57ZChristophe Delépinechristophe.delepine@thalesgroup.com
<ul></ul><p>Thanks,<br><br>
Your fix has solved the problem.</p>
<p>Note however that the widget gallery project still does not compile :</p>
<p>StyleLayout.C (94) : error C3861: 'sleep': identifier not found</p>
Wt - Bug #622: WTreeNodes cannot be expanded http://redmine.emweb.be/issues/622?journal_id=15722010-11-27T19:29:54ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Available in 3.1.7</p>