[SOLVED] QComboBox with QAbstractItemListModel problem

  • I want to use my combobox with an own model derived from QAbstractItemListModel,
    After i set my model then the pop-up is empty. What is missing?
    Should i write a custom delegate or view? Or?

  • Sorry guys for disturbing you with my question. Only one think was missing from the reimplemented data() function in my custom model: if ( role == Qt::DisplayRole ) ... So filtering for display role seems to be essential. For me it seems not entirely logic, but that's the case.

    So i could solve my problem, no it's working fine:)

  • Lifetime Qt Champion


    Without any code it's impossible to tell what is going wrong.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.