-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
6.4.0
-
None
SETUP:
- QComboBox child object is initialized from a .ui file.
- QComboBox inherits a preset font from the object's parent.
EXPECTED BEHAVIOR:
- QComboBox shall permeate the font to it's child objects
ACTUAL BEHAVIOR:
- When QComboBox editable is true in the .ui file, the font does not permeate to the QLineEdit child object and the QLineEdit font settings remain the default font. However, when editable is false, the font permeates through QComboBox and it functions as it should.
- Example:
WORKAROUND:
- QComboBox's derived class can override setEditable and set the font for QLineEdit when it is enabled.
void DerivedComboBox::setEditable(bool editable) { QComboBox::setEditable(editable); this->lineEdit()->setFont(this->font()); }