Results 1 to 1 of 1

Thread: adjust font size to QLabel-size

  1. #1
    Join Date
    Jun 2008
    Posts
    26
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default adjust font size to QLabel-size

    Hey Guys!

    i would like to adjust the font size of the the text on a subclassed qlabel, which i use as playing card in my memory game. what i simply want, is the automatical adjustment of the font size of the text on this label, when i resize the label.
    as i am a total-noob concerning Qt and C++ i didnt find any helpful forum posts. as far as i remember there is an equivalent method in mfc.

    please help me!

    greetings

    //edit: on the playing-cards will only text be displayed.
    Last edited by hunsrus; 9th July 2008 at 16:02. Reason: updated contents

Similar Threads

  1. adjust Font size to a given rect when drawText
    By yartov in forum Qt Programming
    Replies: 5
    Last Post: 14th May 2008, 20:03
  2. Font size of a spinbox
    By SailinShoes in forum Qt Programming
    Replies: 6
    Last Post: 5th May 2008, 15:29
  3. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 18:57
  4. Font size calculation when painting in a QImage
    By Ishark in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2007, 23:22
  5. QLabel, large, rich text, font size
    By TheKedge in forum Qt Programming
    Replies: 3
    Last Post: 5th February 2007, 12: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.