Results 1 to 5 of 5

Thread: SetSelection QListView Pyqt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jun 2010
    Posts
    4
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: SetSelection QListView Pyqt

    Ok Obviously I worded this request wrongly, let me see if I can make this more simple:

    If I have a QListView listBox and a model for that view listModel which contains the following items

    One
    Two
    Three
    Four
    Five

    How do I, via code, make 'Four' the selection?

    Thanks
    Last edited by Chez; 30th June 2010 at 10:58.

Similar Threads

  1. lineEdit's setSelection - How to show more text?
    By squidge in forum Qt Programming
    Replies: 3
    Last Post: 30th January 2010, 17:22
  2. QLibrary in PyQt
    By Urthas in forum Qt Programming
    Replies: 0
    Last Post: 30th October 2009, 18:46
  3. PyQt : Signal like this
    By prashant in forum Qt Programming
    Replies: 5
    Last Post: 2nd October 2009, 20:03
  4. PyQt
    By helvin in forum Newbie
    Replies: 1
    Last Post: 15th April 2009, 08:56
  5. setSelection() in custom view
    By krudio in forum Qt Programming
    Replies: 13
    Last Post: 6th February 2008, 20:03

Tags for this Thread

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.