Results 1 to 2 of 2

Thread: Lock a row in QTreeWidget

  1. #1

    Default Lock a row in QTreeWidget

    HI, I would like to "lock" the bottom most QTreeWidgetItem. Like in spreadsheet applications the row should not move when the user scrolls. My first approach was to delete and add the item again. But this leads to some strange behaviour.

    Thank you,
    Markus

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Lock a row in QTreeWidget

    I guess you can check examples in 4.6.2 . If I remember right there was some example to freeze rows/columns in QTableWidget. You can try similar for QTreeWidget.

Similar Threads

  1. Lock a file
    By euthymos in forum Qt Programming
    Replies: 22
    Last Post: 27th December 2010, 23:29
  2. sqlite read lock.
    By gilgm in forum Qt Programming
    Replies: 6
    Last Post: 18th June 2010, 05:58
  3. QMutex seems not to lock()
    By sylvaticus in forum Qt Programming
    Replies: 18
    Last Post: 4th December 2009, 10:39
  4. Determining that Caps Lock is on
    By ntp in forum Qt Programming
    Replies: 4
    Last Post: 8th October 2009, 00:08
  5. Disable or lock a QTableWidget
    By grub87 in forum Qt Programming
    Replies: 12
    Last Post: 16th July 2009, 17:27

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.