Results 1 to 7 of 7

Thread: Qlabel, customized palette

  1. #1
    Join Date
    Feb 2012
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Qlabel, customized palette

    Hello all,

    I'm new to Qt and have a question about a customized palette for a QLabel, see picture. I would like to change the font for this Qlabel, how do I do that ?

    Please help
    Per
    Attached Images Attached Images

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

    Default Re: Qlabel, customized palette

    Font is not part of the palette.

    Use
    Qt Code:
    1. QWidget::setFont()
    To copy to clipboard, switch view to plain text mode 
    (or manipulate the font property from within Designer).
    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.


  3. #3
    Join Date
    Feb 2012
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Qlabel, customized palette

    Thanks wysota for the answer.

    Yes I forgot to say that I would like to change the font from the designer. But how is it done, I can not find [MS Shell Dlg 2, -1] from the font list ? And the Point Size is 1 ?

    Thanks
    Per

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

    Default Re: Qlabel, customized palette

    Since the property is marked bold, it means you have changed it. So don't ask me why you set the font size to "1". As for the face, MS Shell Dlg is a pseudo-face that will be substituted with the default system font.
    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.


  5. #5
    Join Date
    Feb 2012
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Qlabel, customized palette

    I have not done the design myself, the person that have done it no longer working for the company. But how is it possible to get this: [MS Shell Dlg 2, -1] with a -1 ? I can not change the Point Size either, it is locked in some way I do not know...

    If I choose a QLabel I can not get this font what ever I do ....

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qlabel, customized palette

    Reset the property to its default value by clicking on the right end of the property value field.
    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.


  7. #7
    Join Date
    Feb 2012
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Qlabel, customized palette

    Thanks !!

Similar Threads

  1. Replies: 1
    Last Post: 29th September 2009, 20:44
  2. Replies: 2
    Last Post: 10th February 2009, 14:12
  3. customized layout issue
    By sanjayshelke in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2008, 08:02
  4. QStyleOptionProgressBar customized
    By xEsk in forum Qt Programming
    Replies: 1
    Last Post: 11th November 2007, 18:25
  5. Customized Table
    By tunguska in forum Qt Programming
    Replies: 3
    Last Post: 28th September 2007, 18: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
  •  
Qt is a trademark of The Qt Company.