Results 1 to 5 of 5

Thread: How to add a QLabel in QListView?

  1. #1
    Join Date
    Nov 2007
    Posts
    15
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default How to add a QLabel in QListView?

    Hi,

    How to add a QLabel in QListView?

    Thanks in advance.

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

    Default Re: How to add a QLabel in QListView?

    You might want use QListWidget or you have to paint the label in a custom delegate yourself.

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

    Default Re: How to add a QLabel in QListView?

    Quote Originally Posted by live_07 View Post
    How to add a QLabel in QListView?
    Why do you want to add a label in QListView?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to add a QLabel in QListView?

    Probably to get rich text

  5. #5
    Join Date
    Nov 2007
    Posts
    15
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to add a QLabel in QListView?

    Quote Originally Posted by wysota View Post
    Why do you want to add a label in QListView?
    I need to add hyperlink inside the list view, when the hyperlink is clicked we need to open the website in browser

Similar Threads

  1. QListView
    By Yayati.Ekbote in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2010, 18:50
  2. Replies: 1
    Last Post: 29th September 2009, 19:44
  3. QListWidget or QListView with QLabel(s)
    By lukass in forum Newbie
    Replies: 6
    Last Post: 11th August 2008, 09:48
  4. Replies: 1
    Last Post: 2nd August 2008, 15:46
  5. QListView
    By dragon in forum Newbie
    Replies: 1
    Last Post: 25th January 2006, 21:08

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.