Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QComboboxdelegate
Qt 6.11 is out! See what's new in the release blog

QComboboxdelegate

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 950 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    d4ex
    wrote on last edited by
    #1

    Hello.

    I have a Question to the QItemDelegate.

    I build a class ComboBoxDelegateByList with this class i can show several Comboboxdelegates in, for example a Tableview. That works fine.
    Now i have for example one column (Column 1) filled with ComboBoxDelegates...

    What i want to do is that all this Delegates in Column 1 change their content if i update the content. All ComboboxDelegates have the same content.

    But now i dont know where to start...
    I have the ...
    @
    ComboBoxDelegateByList::setModelData(QWidget* pEditor, QAbstractItemModel* pModel, const QModelIndex& index) const
    @
    ... Method, but here i can not edit all the columns only one.
    I thing the best approach is to update the comboboxdelegate in the model or not? Or can i set the data via the setData Method of my Model. Someone knows a other good approach?

    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved