Results 1 to 2 of 2

Thread: How to apply font to QString

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt3 Qt4

    Lightbulb How to apply font to QString

    Hi Friends i am using normal QWidget as main GUI of application. In that QWidget i am drawing a rectangle and also displaying coordinates of rectangle using paint.drawText method but i want to apply smaller font to the QString that is displaying coordinates in qt-4.5.3 can anbody help???? Also i don't want to apply that font to whole QWidget and i don't want to use any QLabel or such thing.

  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: How to apply font to QString

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to set font of QString??
    By sudhansu in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2010, 14:32
  2. why font CSS can not apply to QPushButton on hover?
    By homerli in forum Qt Programming
    Replies: 0
    Last Post: 25th May 2009, 06:22
  3. Change Font of QListWidget to Monospace Font
    By pospiech in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2008, 18:23
  4. font incorrectly show - font break.
    By sgh in forum Qt Programming
    Replies: 9
    Last Post: 30th May 2008, 02:35
  5. Replies: 4
    Last Post: 31st January 2008, 20:44

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.