×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2010
    Location
    Hyderabad
    Posts
    16

    Question Getting font problem in Qt?

    Hi to all,
    I am new to Qt 4.7.I am developing a one sample application.Iin which want to move next screen(Widget) .
    While changing the next screen got the font problem in simulator all widgets are looking very small.
    plsssss can any one help me to solve this problem.
    Thanks in Advance.....

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Getting font problem in Qt?

    I suspect the simulator uses Windows font sizes, which are about half as big as Symbian phone font sizes.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Location
    Espoo, Finland
    Posts
    25

    Re: Getting font problem in Qt?

    I also have seen some font problems in the Linux version of Nokia Qt SDK simulator. This might be related to problem which SaiPrasad2010 mentioned earlier in this thread.

    Eg if your application shows a splash screen before the main window then texts in your main window show up wery small. The problem shows only when you are running application using simulator, not when you are running app on device. So I think it is a bug in the simulator. Try to run following application on Linux using current Nokia Qt SDK simulator: Make sure that simulator starts in the one of these view modes: Symbian Touch, Symbian non Touch or Symbian ^3. The problem does not show if simulator starts in the Maemo Fremantle mode. Also if you manually switch view modes then problem disappears

    Code:
    #include <QApplication>
    #include <QSplashScreen>
    #include <QLabel>
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
    
        QSplashScreen splash(QPixmap(":/picture.png"));
        splash.show();
    
        QLabel w("Hello World!!");
    
    #if defined(Q_WS_S60)
        w.showMaximized();
    #else
        w.show();
    #endif
    
        splash.finish(&w);
    
        return a.exec();
    }
    The text of QLabel shows wery small. It happens atleast on Linux, I don't know about Windows. If you comment out lines related to splash screen then problem disappears.

    It really does not matter if your main widget is QLabel, sub class of QMainWindow or something else. It also does not matter if you use show(), showMaximized() or showFullScreen(). It also does not matter if you set a pixmap for the splashscreen or not. Text in the main widget show up always wery small. The problem goes away if you don't show the splash screen at all.

    As I said there is no problem when running application on device. I'm using Debian 5.0 'Lenny', but I don't think it should matter what linux distro you are using.
    Last edited by miksuh; 2010-12-19 at 22:05.

Similar Threads

  1. Huge font in Qt SDK on Linux Mint
    By jounihat in forum [Archived] Qt SDKs and Tools
    Replies: 7
    Last Post: 2010-09-09, 07:51
  2. QT Nokia sdk installation and QT Creator config problem
    By kapiluiet in forum [Archived] Qt SDKs and Tools
    Replies: 1
    Last Post: 2010-06-02, 13:49
  3. N97/Qt 4.6.2: Fixed width font?
    By hurenkam in forum Qt
    Replies: 5
    Last Post: 2010-03-22, 21:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×