Results 1 to 2 of 2

Thread: :) Refinement of 'SelectColumns' Behavior

  1. #1
    Join Date
    Dec 2014
    Posts
    48
    Thanks
    23
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 PyQt3 PyQt4
    Platforms
    Windows

    Default :) Refinement of 'SelectColumns' Behavior

    Hello world.

    Holding curiosity on PyQt QtableView guidelines. Is possible with (relatively simple) code, to:
    -allow a user to select a one or many item range bound in absolute by a single column?

    A combination of '...setSelectionBehavior(QtGui.QAbstractItemView.S electColumns)' and '....setSelectionMode(QtGui.QAbstractItemView.Exte ndedSelection)' have been trialed to no solution.

    Ideally,
    -rather then an entire column (as SelectColumns causes), I would like to retrieve a variable range within ONE column.
    [please see ref. image below]

    Possible wisdom or examples on this 'ish?
    Thanks and Happy Holidays!

    columnSelect.jpg

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: :) Refinement of 'SelectColumns' Behavior

    I guess you would need ExtendedSelection and SelectItems and implement the "confine to column" yourself.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    jkrienert (30th December 2014)

Similar Threads

  1. qmake behavior
    By Radek in forum Newbie
    Replies: 17
    Last Post: 6th February 2014, 13:53
  2. Qt5 and QKeySequence new behavior
    By roxton in forum Qt Programming
    Replies: 0
    Last Post: 10th June 2013, 11:39
  3. Odd behavior...
    By TemporalBeing in forum Qt Programming
    Replies: 0
    Last Post: 28th February 2009, 01:45
  4. QTreeView behavior
    By killerwookie99 in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2009, 21:29
  5. Bizzare behavior under X (Qt 4.3.0)
    By slcotter in forum Qt Programming
    Replies: 14
    Last Post: 30th July 2007, 22:42

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.