this is the code :
QWidget * w
=myBackendSelectionWidget
->myBackendComboBox
->parentWidget
();
QLayout * layout
= myBackendSelectionWidget
->myBackendComboBox
->layout
();
myBackendComboBox->setGeometry(/*132,8,80,20*/myBackendSelectionWidget->myBackendComboBox->geometry());
myBackendComboBox->show();
QWidget * w =myBackendSelectionWidget->myBackendComboBox->parentWidget();
QLayout * layout = myBackendSelectionWidget->myBackendComboBox->layout();
myBackendComboBox = new QComboBox(w);
myBackendComboBox->setGeometry(/*132,8,80,20*/myBackendSelectionWidget->myBackendComboBox->geometry());
myBackendComboBox->show();
To copy to clipboard, switch view to plain text mode
myBackendSelectionWidget - the widget that holds the old combobox
thats the result:

the left combobox is the new one.
What i want is to place it exactly on top pf the right one (the old combobox) , and exactly the same width and height.
10x
Bookmarks