Results 1 to 5 of 5

Thread: Remove the withe perforated rectangle in the QListWidgetItem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    56
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Remove the withe perforated rectangle in the QListWidgetItem

    anyonw know how to remove the withe perforated rectangle in the QListWidgetItem!?


  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Remove the withe perforated rectangle in the QListWidgetItem

    QListWidget::currentItem(), QListWidget::takeItem(), and delete seem like obvious starting points.

  3. #3
    Join Date
    Mar 2010
    Posts
    56
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: Remove the withe perforated rectangle in the QListWidgetItem

    i just want to remove the white rectangle, if i do setFocusPolicy(Qt::NoFocus) the rectangle disapear but i can't use the keyboard, up and down to navigate!

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Remove the withe perforated rectangle in the QListWidgetItem

    I cannot see the obvious way to disable the current item border with stylesheets although I expect it is in there somewhere.

    If you take away the current item border then how are you going to tell which is the current item?

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

    Default Re: Remove the withe perforated rectangle in the QListWidgetItem

    You will need to use custom delegate or style.
    Search the forum , this problem has been posted many times.

Similar Threads

  1. Replies: 1
    Last Post: 11th May 2010, 02:52
  2. How to remove the dotted rectangle of selection
    By jiveaxe in forum Qt Programming
    Replies: 5
    Last Post: 18th April 2010, 22:00
  3. i'm in troubles withe threads !!
    By jiboon in forum Newbie
    Replies: 3
    Last Post: 21st April 2008, 20:36
  4. QListWidgetItem remove an item
    By mattia in forum Newbie
    Replies: 4
    Last Post: 9th November 2007, 07:57
  5. Remove selected QListWidgetItem
    By xgoan in forum Newbie
    Replies: 7
    Last Post: 28th September 2006, 14:42

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.