×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Question How to use ellipsis in QListView and QLabel?

    I have a 1 Line QLabel in my application. Sometimes QLabel receives long text and then text exceeds horizontally. How to use 3dots ... ellipsis in QLabel.

    Same thing for QListView I have custom list view. If there is long text then I want to use 3 dots ... ellipsis.

    For eg. If I have text "I love Forum Nokia" then It is okay in one line but I have text like "I love Forum Nokia and It all its member" then It should display like "I love Forum Nokia an..."

    If things are not clear, let me know I will give you more detail regarding this doubt.
    Last edited by divanov; 2011-04-30 at 14:15. Reason: Fixing extremely misleading grammar mistakes

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to use ellipsis in QListView and QLabel?

    Implement your own label, as shown at http://daniel.molkentin.de/blog/arch...made-easy.html , or get a ready made one after saying thanks to the author.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How to use ellipsis in QListView and QLabel?


  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Re: How to use ellipsis in QListView and QLabel?

    Working Perfect, Thanks...

Similar Threads

  1. How to enable gesture in QListView ?
    By ioricat in forum Qt
    Replies: 2
    Last Post: 2011-04-20, 09:05
  2. Replies: 5
    Last Post: 2011-02-03, 14:07
  3. Replies: 7
    Last Post: 2011-01-20, 13:36
  4. Replies: 9
    Last Post: 2010-10-08, 12:54
  5. Replies: 2
    Last Post: 2010-01-28, 18:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×