Thank you so much for your answer, and you are so right, sorry for this nonsense

I managed to solve my problem, with the following code (sorry, I didn't find the 'insert code' button), thanks again for you help !!

Best Regards,

Stéphane


// Global layout declaration (window_data_assignment)
QVBoxLayout * vLayout = new QVBoxLayout(window_data_assignment);
// ScrollArea declaration (window_data_assignment)
QScrollArea * scrollArea = new QScrollArea(window_data_assignment);

// ScrollArea properties definition
scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded) ;
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeede d);
scrollArea->setWidgetResizable(false);

// Assigment of data_assigment_input to ScrollArea
scrollArea->setWidget(data_assigment_input);

// Assigment of ScrollArea to the global layout
vLayout->addWidget(scrollArea);

// Assigment of the global layout to the current window widget
window_data_assignment->setLayout(vLayout);