Results 1 to 2 of 2

Thread: Need to know how many pixels are from top-left to the first character showed at QText

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Need to know how many pixels are from top-left to the first character showed at QText

    I think that there is some pixels from the left-top of the QTextEdit to the left-top of the first character showed at QTextEdit.
    I dont find how to get it... In addition I apply a style with 0 px for margin, padding and border but I see the same.
    Any idea ? Thanks

  2. #2
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Need to know how many pixels are from top-left to the first character showed at Q

    SOLVED :
    ->document->documentmargin() .......
    Last edited by tonnot; 4th October 2011 at 20:11.

Similar Threads

  1. Replies: 4
    Last Post: 29th August 2010, 18:16
  2. Character by Character (Unicode?) File Reading
    By mclark in forum Qt Programming
    Replies: 4
    Last Post: 22nd April 2009, 15:28
  3. No Background image showed
    By jiveaxe in forum Installation and Deployment
    Replies: 2
    Last Post: 30th December 2007, 13:25
  4. QText Edit help please
    By munna in forum Qt Programming
    Replies: 2
    Last Post: 14th December 2006, 10:20
  5. Finidng the pixels for a character in QTextEdit
    By sukanyarn in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2006, 09:56

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.