Results 1 to 2 of 2

Thread: How to get text for Tableview to Combobox ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to get text for Tableview to Combobox ?

    See QDataWidgetMapper, which is the "right" way to do what you want.

    And no wonder that setCurrentIndes is not working. Debug what QModel->data(items[6],Qt:isplayRole) returns! It is "quan 2" which is not a number....

  2. The following user says thank you to Lykurg for this useful post:

    hohoanganh205 (26th December 2011)

Similar Threads

  1. Replies: 1
    Last Post: 8th April 2011, 19:54
  2. Clearing editted text from ComboBox on return
    By cnbp173 in forum Qt Programming
    Replies: 2
    Last Post: 3rd February 2011, 22:41
  3. Replies: 0
    Last Post: 31st October 2010, 21:55
  4. centering combobox text
    By illuzioner in forum Qt Programming
    Replies: 4
    Last Post: 30th May 2007, 14:06
  5. Replies: 8
    Last Post: 15th May 2007, 09:21

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
  •  
Qt is a trademark of The Qt Company.