Project

General

Profile

Actions

Support #1599

closed
MS KD

more than onr WTreeTable in WStackedWidget

Support #1599: more than onr WTreeTable in WStackedWidget

Added by Marek Szumlas almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
12/10/2012
Due date:
% Done:

0%

Estimated time:

Description

it would seem logical to be able to have 2 or more WTreeTables inside a WStackedWidget
is this not allowed ?
i get a segmentation fault on this loop -

Wt::WStackedWidget *sw = new Wt::WStackedWidget();
vector< Wt::WTreeTable* > tt;
for( int i=0; i<3; i ) tt.push_back( new Wt::WTreeTable( sw ));

if this is not allowed - could i put the WTreeTables inside a WTabWidget - one table per tab of course ?
greetings
Marek

MS Updated by Marek Szumlas almost 14 years ago Actions #1

sorry - both 'sw' and 'tt' are pointers of course
i thought i made a mistake but the editor threw out the "asteriscs" and the "less than" sign

WD Updated by Wim Dumon almost 14 years ago Actions #2

Marek,

Of course it is allowed to put multiple WTreeTables in a WStackedWidget. I have no idea why you get a segmentation fault - can you tell something more about it? A backtrace, or valgrind, or ... ?

BR,
Wim.

WD Updated by Wim Dumon almost 14 years ago Actions #3

Based on your source code, this seems to be a bug in Wt - I will file a bug report

KD Updated by Koen Deforche over 13 years ago Actions #4

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche

KD Updated by Koen Deforche over 13 years ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom