Results 1 to 2 of 2

Thread: Selection window

  1. #1
    Join Date
    Jan 2010
    Posts
    3
    Platforms
    Windows

    Default Selection window

    Hello all!
    I'm very new to QT, but I'd like to do a selection window.
    I have a first window (main window) in which I have a customer field. I have a button to search for a customer, and when I click on it, I open a dialog with search fields that display the contents of a query in a QTableView. Up to here, everything looks good.
    Now, I'd like to select a customer from my list and pass it back to my main window.
    I've done some searching and I can't figure it out... Could someone please help me and tell me what to do?
    Thanks in advance for your time
    Regards
    Neil.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Platforms
    MacOS X Unix/X11
    Thanks
    1
    Thanked 52 Times in 52 Posts

    Default Re: Selection window

    The easiest way is to have a getter in the dialog to return the currently selected customer and then show the dialog blocking from the mainwindow using exec and evaluate that getter afterwards.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Replies: 2
    Last Post: 10th December 2009, 08:01
  2. Changing window states breaks window manager
    By sebastian.f in forum Newbie
    Replies: 3
    Last Post: 30th June 2009, 15:40
  3. Replies: 1
    Last Post: 12th June 2009, 10:26
  4. Replies: 11
    Last Post: 4th June 2008, 08:22
  5. Replies: 14
    Last Post: 9th November 2006, 09: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.