2

I know the "Value Map" option which allow to create a drop-down list, but how can I create a combo-box in QGis 3 ?

Reminder : a combo-box is

a combination of a drop-down list or list box and a single-line editable textbox

  • Where specifically, you want to create Combo Box ?? In a plugin ? – Ahsan Mukhtar Apr 1 '19 at 16:11
2

Since you mentioned "value map," which is a type of field edit widget, I assume you want a combo box for data entry in the attribute table or during new feature creation.

In the edit widget descriptions, the term combo box is used according to a different definition than the one you quoted. It's used in the second sense of this definition from Wikipedia:

A combo box is a commonly used graphical user interface widget (or control). Traditionally, it is a combination of a drop-down list or list box and a single-line editable textbox, allowing the user to either type a value directly or select a value from the list. The term "combo box" is sometimes used to mean "drop-down list".

The description for the Value Map widget says it creates a combo box for attribute entry. This widget creates a drop-down list, where you can choose user-friendly values from the list, and different values are stored in the attribute table. There's no editable textbox.

Value Map widget description

new feature creation with Value Map widget

The "Unique Values" widget creates a combo box that satisfies your definition. It gives an editable textbox, with auto-completion in the form of a list that appears when you start typing. The drop-down list is populated with the values already in the field.

Unique Values widget description

new feature creation with Unique Values widget

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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