Results 1 to 3 of 3

Thread: QFontDialog - how to resize?

  1. #1
    Join Date
    Jun 2007
    Posts
    7
    Thanks
    1

    Question QFontDialog - how to resize?

    Hi,

    I need to resize a QFontDialog as it's too big by default (as set by the line "resize(500, 360);" in qfontdialog.cpp).

    However, the only public methods in QFontDialog are the static getFont methods. The constructor is private as well. In other words, I can't see how to get at a QFontDialog object so that I can call resize() on it.

    Maybe I'm just too tired. Can anyone help?

    EDIT: using Qt 4.2

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

    Default Re: QFontDialog - how to resize?

    Why is it too big? Looks like the size is forced by the layout... If you want something simpler, use QFontComboBox.

  3. #3
    Join Date
    Jun 2007
    Posts
    7
    Thanks
    1

    Default Re: QFontDialog - how to resize?

    Thank you for the suggestion, that's a good idea. I wasn't aware of that widget.

    (The QFontDialog is too large for PDA screens).

Similar Threads

  1. Replies: 2
    Last Post: 20th April 2007, 15:36
  2. Resize QWidget in QMainWindow
    By aamer4yu in forum Qt Programming
    Replies: 1
    Last Post: 8th March 2007, 12:16
  3. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 07:00
  4. How to resize window with pushbutton
    By kaydknight in forum Newbie
    Replies: 2
    Last Post: 13th January 2007, 12:17
  5. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32

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.