I want to hide the Quick Field Calculation Bar (see image). I found this old thread: Disabling FieldCalcBar in QGIS

but sadly it does'nt work in QGIS 3.28.

Does anyone know what the quick field calculation bar is called in the Python-API?

I found this in the source code of qgis:

mUpdateExpressionBox->setVisible( mLayer->isEditable() ); if ( mLayer->isEditable() && mFieldCombo->currentIndex() == -1 )

Is it possible to just make the setVisible to false?

enter image description here

1 Answer 1

# Import necessary modules
from qgis.PyQt.QtWidgets import QApplication

# Get a reference to the main application
app = QApplication.instance()

# Iterate through all open windows and hide the "Quick Field Calculation" box
for widget in app.allWidgets():
    if widget.objectName() == 'mUpdateExpressionBox':

found it out myself!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.