Results 1 to 3 of 3

Thread: QListWidget issue

  1. #1
    Join Date
    Feb 2009
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QListWidget issue

    In QListWidget control, if QListWidgetItem is entered as text, all items
    gets the click signal.
    But in my project i need customized items. So i set Qlabel as item. Thus i got appearance as I desired. But there I did not get the click signal for the last item in center and lower portion areas of QLabel. Click signal gets only on upper portion of the last item. Balance items gets signals as in desired manner. But last item only shifts from its behaviour. Why is it like that.
    Last edited by febil; 18th February 2009 at 10:44.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QListWidget issue

    try to send event filter for that lable and redirect mouse events to QListWidget, this method is a little bit tricky. maybe there is sense to write your own delegate.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Feb 2009
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QListWidget issue

    Thanks for ur replay. Actually our problem solved by the following steps:
    1. Set the QListWidget row height.
    2. And Unset the label height.

Similar Threads

  1. how to sync a QTreeWidget and a QListWidget?
    By zl2k in forum Qt Programming
    Replies: 2
    Last Post: 5th September 2008, 20:55
  2. QListWidget painting issue
    By guilugi in forum Qt Programming
    Replies: 6
    Last Post: 16th April 2007, 17:06
  3. Mouse Drag selction Issue in QListWidget
    By vishal.chauhan in forum Qt Programming
    Replies: 5
    Last Post: 21st February 2007, 08:55
  4. Replies: 13
    Last Post: 15th December 2006, 11:52
  5. keypress while editing an item in QListWidget
    By Beluvius in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 09:56

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.