Originally Posted by
caduel
describe those problems, please...
Dear Caduel,
the problem is that I can not see the custom widget. Is not displayed.
Here come code:
CentralWidget
::CentralWidget( QWidget* parent
/* = 0 */ ) mp_vBox( 0 ),
mp_wave( 0 )
{
/* vertical laayout */
/* scroll area */
/* waveform ( my custom widget ) */
mp_wave = new WaveWidget( this );
scrollArea->setWidget(mp_wave);
mp_vBox->addWidget( scrollArea );
..I would add another scrollArea
..with another WaveWidget
...and more controls ( buttons, etc )
setLayout(mp_vBox);
}
CentralWidget::CentralWidget( QWidget* parent /* = 0 */ )
: QWidget(parent),
mp_vBox( 0 ),
mp_wave( 0 )
{
/* vertical laayout */
mp_vBox = new QVBoxLayout( this );
/* scroll area */
scrollArea = new QScrollArea();
/* waveform ( my custom widget ) */
mp_wave = new WaveWidget( this );
scrollArea->setWidget(mp_wave);
mp_vBox->addWidget( scrollArea );
..I would add another scrollArea
..with another WaveWidget
...and more controls ( buttons, etc )
setLayout(mp_vBox);
}
To copy to clipboard, switch view to plain text mode
I don't know where the code is wrong, but I can not see the WaveWidget.
The WaveWidget expand in the x direction so I need a scrollArea
Best,
Franco
Bookmarks