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:
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 windowQt Code:
void EditObject::window_elements_update() { .... if (update_val){ update_val = 0; setLayout(final_layout); } else { layout()->update(); } }To copy to clipboard, switch view to plain text mode
Bookmarks