×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    130

    Button size problem in s60 emulator...

    Hi,

    I just developed a QT application in carbide c++ contains only one button in UI, and when i run that in emulator, the size of the buton is very bigger in size and not all the letters are visible in the button.

    and when used many buttons, some of the buttons are not visible.

    Can anyone say how to reduce the size of the button in emulator which suits the screen.

    Regards,
    Bala

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: Button size problem in s60 emulator...

    Hi balaji,

    Have you tried the resize option of the button?
    Simply write
    button.resize(width,hieght).

    Above command will resize the button to a specified dimentions.

    You can also resize it from Qt Designer in carbide c++ similar to how we are resizeing the component in VB forms.

    Regards.
    Jajal Mehul

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    130

    Re: Button size problem in s60 emulator...

    Hi Jajal,

    Resize option resizes in the UI but not in the s60 emulator.

    Regards,
    Bala

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    2

    Re: Button size problem in s60 emulator...

    Hi,

    Any solution for this problem? Most of the UI components have a problem while displaying. QT CalendarWidget example shows the problem clearly.

    Any help?

    Thanks,
    Ramya

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

    Re: Button size problem in s60 emulator...

    While there is a significant difference with regard to font sizes in Qt/Symbian vs Qt/Windows, I've never seen a difference in other widget sizes, as they are sized in pixels.

    Re font sizes, on Qt/Symbian I've generally found that simply dividing point size in half gives pretty close to the correct results. Eg, a 14 point font on Windows should be replaced with a 7 point font on Symbian. I don't know of a way to manage this in the UI Designer or in CSS, but in Qt C++ you can use something like this:
    Code:
    #ifdef Q_OS_SYMBIAN
        QFont myFont("Arial Black", 8);
    #else
        QFont myFont("Arial Black", 16);
    #endif
        myWidget ->setFont(myFont);
    I could see that, due to this font size difference, layout managers would make buttons larger on Symbian, in an attempt to make room for the larger font. Widgets with "hard coded" layout shouldn't be different, however.

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

    Re: Button size problem in s60 emulator...

    I'll add that the fonts as displayed in Carbide UI Designer are "wrong" in that they are the Windows rather than Symbain font sizes. (Ie, the fonts will only appear to be half as big as they would be on the device or in the emulator.) So you can't rely on a layout in Designer to match "reality" in this regard.

Similar Threads

  1. Extra E90 screen size in the S60 3rd edition FP1 emulator
    By svdwal in forum Symbian Tools & SDKs
    Replies: 34
    Last Post: 2009-05-12, 08:55
  2. Replies: 4
    Last Post: 2008-04-09, 06:44
  3. Problem Testing Midlet On s60 3rd Edition Emulator
    By CaptainBucky in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2008-03-20, 21:51
  4. Replies: 1
    Last Post: 2008-01-03, 12:41

Posting Permissions

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