Results 1 to 4 of 4

Thread: ComboBox with QSqlTableModel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Oct 2007
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: ComboBox with QSqlTableModel

    I didn't find from docs. It is too complex just for me now. I asked here in the newbie forum and someone helped me.
    I am just trying to make a real application from QtDemos with model->copyPaste for now.
    I developed this solution. It took my two hours.

    QVariant city_id = cityModel->data(cityModel->index(comboBox_City->currentIndex(),0) );
    Last edited by mkarakaplan; 9th November 2007 at 23:34.

Similar Threads

  1. [Qt 4.3.1]A problem with combobox style
    By Tamara in forum Qt Programming
    Replies: 3
    Last Post: 19th September 2007, 10:49
  2. Replies: 8
    Last Post: 15th May 2007, 09:21
  3. Combobox Signals
    By b1 in forum Qt Programming
    Replies: 3
    Last Post: 1st August 2006, 10:21
  4. Filling combobox from database
    By Philip_Anselmo in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2006, 17:53
  5. QSqlTableModel
    By raphaelf in forum Qt Programming
    Replies: 4
    Last Post: 4th March 2006, 12:35

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.