PDA

View Full Version : Issue when i open window from mainwindow after the 1st time - it will open very small



andreaQt
5th October 2020, 13:29
In my code code attached i have this issues:
1 - when i open the edit window at 1st time the window will be open right, next time it will open very small?
(if i make some mistake in my code tell me what is the right procedure to do the job by explain me with some code, thank you)
2 - I'm trying to reduce the "color-label" to the width of the combobox, i have tried some but with no effect, how i can do it?
3 - when i try to close the main window by pressing with the mouse on X button, no happen?

Qt compiler is showed this message after the 1st open:
QWidget::setLayout: Attempting to set QLayout "" on EditObject "", which already has a layout

Added after 38 minutes:

after i used an auxiliary update_val:


void EditObject::window_elements_update()
{
....
if (update_val){
update_val = 0;
setLayout(final_layout);

}
else {
layout()->update();
}
}

and the message "QWidget::setLayout: Attempting to set QLayout "" on EditObject "", which already has a layout" disappeared but the window still small after the 1st open window