Results 1 to 2 of 2

Thread: QSqlQueryModel: Delegate with combobox as editor

  1. #1
    Join Date
    Oct 2020
    Posts
    1

    Default QSqlQueryModel: Delegate with combobox as editor

    Hi

    I use a QSqlQueryModel (from SQLite-database to tableview) , I succeeded to make it writable.
    But I did not succeed, to use a combobox instead of the standardeditor.
    Is this possible?

    Thanks

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,677
    Thanks
    13
    Thanked 1,596 Times in 1,524 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSqlQueryModel: Delegate with combobox as editor

    Yes. See the docs for QStyledItemDelegate (and QItemDelegate) and the examples they provide links to

Similar Threads

  1. How to set data from combobox delegate into 2 cells?
    By andsun in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2015, 16:32
  2. set combobox delegate on some view items
    By GrahamLabdon in forum Newbie
    Replies: 0
    Last Post: 8th March 2011, 15:36
  3. QSqlite database lock + Delegate + QSqlQueryModel
    By NoRulez in forum Qt Programming
    Replies: 0
    Last Post: 13th October 2009, 12:52
  4. How to get index of a combobox delegate selection
    By vieraci in forum Qt Programming
    Replies: 12
    Last Post: 21st July 2009, 17:37
  5. Combobox Delegate 25.000 records
    By aekilic in forum Qt Programming
    Replies: 9
    Last Post: 29th July 2008, 13:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.