Results 1 to 3 of 3

Thread: QListWidget like in KDE settingsdialog

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default QListWidget like in KDE settingsdialog

    Hi,

    I am trying to design a QListWidget like it appears in the KDE settingsdialogs. (a) Text under the icon and (b) both h-centered and (c) the selection mask fills the whole width (+around the icon).

    Howto get one of (a), (b) or (c) I know, but I fail to get all three together.


    Thanks,
    Lykurg

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QListWidget like in KDE settingsdialog

    The easiest way is to reimplement the delegate. Otherwise it's hard to position the text and icon correctly - believe me, I tried

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QListWidget like in KDE settingsdialog

    Quote Originally Posted by wysota View Post
    The easiest way is to reimplement the delegate.
    Well, then I will try to do so. Thanks

Similar Threads

  1. Replies: 13
    Last Post: 15th December 2006, 11:52
  2. QListWidget help please
    By munna in forum Qt Programming
    Replies: 5
    Last Post: 28th November 2006, 12:16
  3. Qt 4.2: QListWidget changes size of its items
    By KingFish in forum Qt Programming
    Replies: 2
    Last Post: 25th October 2006, 11:06
  4. keypress while editing an item in QListWidget
    By Beluvius in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 09:56
  5. QListWidget add QListWidgetItem
    By fellobo in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2006, 19:37

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.