Results 1 to 4 of 4

Thread: Elide text

  1. #1
    Join Date
    Apr 2013
    Posts
    65
    Thanks
    4
    Thanked 3 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question Elide text

    It is possible to configure the "QWebView" to work with "Elide" disabled (equivalent to Qt::ElideNone)?

    The "Elide" graphic texts being compressed (elieded) to fit inside the select.

    Example:


    I wish the entire text to be displayed when clicked on comobox (selectbox). Is it possible?

    Thanks.

    [edit]

    I think it may be the way the styleSheet:
    Qt Code:
    1. ...
    2. }
    To copy to clipboard, switch view to plain text mode 

    I just do not know which property to use styleSheet disable "elited".

    Maybe something like this:
    Qt Code:
    1. elided: none;
    2. ...or...
    3. elide: none;
    4. }
    To copy to clipboard, switch view to plain text mode 

    Anyone know a link with all properties stylesheets used in QT (I searched but did not find)?
    Last edited by brcontainer; 13th June 2013 at 04:21.

  2. #2
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Elide text

    A simple search on google give me the link.
    http://qt-project.org/forums/viewthread/4062

    Hope this is what you want.


    CHEERS!!!

  3. #3
    Join Date
    Apr 2013
    Posts
    65
    Thanks
    4
    Thanked 3 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Elide text

    @karankumar1609 I am very grateful for your help. But I could not make it work in QWebView. Could you help me? Its show me an example?

    Thanks.

  4. #4
    Join Date
    Apr 2013
    Posts
    65
    Thanks
    4
    Thanked 3 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Elide text

    Worked this way:
    Qt Code:
    1. qproperty-textElideMode: ElideNone
    2. }
    To copy to clipboard, switch view to plain text mode 
    I did not need to compile. But the problem is that the width does not follow. How could I do this?
    Thanks.

Similar Threads

  1. Replies: 0
    Last Post: 12th April 2011, 08:25
  2. Elide modes for QTreeView ,QStandardItemModel
    By kiran p in forum Qt Programming
    Replies: 4
    Last Post: 1st April 2011, 11:34
  3. How to set Text Elide Mode for QComboBox
    By kalos80 in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2011, 09:42
  4. Replies: 1
    Last Post: 26th November 2010, 13:06
  5. QListView Text Elide Like QListWidget
    By Kel Solaar in forum Qt Programming
    Replies: 6
    Last Post: 13th May 2010, 06:44

Tags for this Thread

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.