Results 1 to 2 of 2

Thread: How to enforce height on an html element inside QLabel?

  1. #1
    Join Date
    Sep 2008
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to enforce height on an html element inside QLabel?

    How can I enforce a height on an html element that I'm inserting into a QLabel? It seems that width/height is being completely ignored, and I tried max- variants of them too. Set the style to be display:block; overflow:hidden; also, but my element is still growing out of it's proportions instead of 'wrapping' text into the space available.

  2. #2
    Join Date
    Sep 2008
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to enforce height on an html element inside QLabel?

    Anyone know?

    I just can't get the CSS properties of width / height respected in my elements, and I don't see much in the docs about this.

Similar Threads

  1. Replies: 2
    Last Post: 24th January 2009, 18:30
  2. HTML and *clickable links* inside a QListView?
    By Garibaldi in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2008, 10:44
  3. QTextImageFormat HTML not write <img width= height>
    By patrik08 in forum Qt Programming
    Replies: 9
    Last Post: 8th February 2007, 01:59
  4. rotate Qlabel inside a QPopupMenu
    By mickey in forum Newbie
    Replies: 7
    Last Post: 1st May 2006, 17:33
  5. QLabel with HTML-style formatting docs?
    By Everall in forum Qt Programming
    Replies: 6
    Last Post: 7th February 2006, 20:01

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.