Results 1 to 2 of 2

Thread: QTextbrowser size question?

  1. #1
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default QTextbrowser size question?

    Hi All
    I have prepared a form, which has a text browser on it.I am using it for displaying different html files but problem is every html file has different size.Some of them is long , some of them is short.
    According to it's size , i want to change textbrowser's size and location (geometry) on form.

    How can i do this?

    Thanks.
    Last edited by anafor2004; 18th April 2008 at 12:10.

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

    Default Re: QTextbrowser size question?

    You can ask QTextDocument and its text layout for the size of the document it holds.

Similar Threads

  1. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  2. Simple custom widget won't size properly
    By MrGarbage in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2007, 13:12
  3. Font size calculation when painting in a QImage
    By Ishark in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2007, 22:22
  4. Replies: 1
    Last Post: 24th October 2006, 16:40
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.