Width of the screen in Sto? (QML)

Hello

I read on sdu() in https://developer.blackberry.com/native/documentation/best_practices/resolution/#designunits103. Is there an easy way in QML to get the size of the screen in Sto such as a certain provision of the screen could be calculated execution instead of design time?

ARO

René

Ok. Thanks for the help. Yes. I did read / understand sdu() can be used to ensure that the graphic elements have the same physical size on different screens (with individual pixels and different DPI - dots per inch).

BR, René

Tags: BlackBerry Developers

Similar Questions

  • get the height and width of the screen in QML?

    How to get the height and width of the screen in QML?

    Please search the forums before you make a new post. This post is still on the first page... http://supportforums.BlackBerry.com/T5/Cascades-development/correct-way-to-get-display-width-height-...

  • How can I stop him adding that pop multiple bookmarks - up to fill the width of the screen?

    Whenever I try to add more than one link to my favourites, the pop-up that asks to add these links fills the width of the screen. It happens when I try to add all of the current tabs to Favorites, as well as when I use the add on, multi links. This makes it very difficult to add links because I have to go across the screen to find the ok button.

    I want to resize the pop up to a more manageable size. However, even though I should be able to resize, I can't figure out how. I also tried to minimize it, but the next time I tried to gather more bookmarks, it was back to the large size again.

    After validation, I tried once more to resize the pop-up. This time, it worked, and it seemed to stick. I think that I could have an add on (multi link). I thought I had tried resizing without which adds be on. I already knew that I was unable to use the search functions on different sites with the add on assets.

    So my problem has been resolved. Even if I don't know what caused the large size first.

  • height and width of the screen

    Hi all, I know that it is not advisable to design a user interface based on the resolution of the device. But I need to know the width of the screen of the device in order to define some elements. I saw in central reference on something like SCREEN_PROPERTY_SIZE or something. But I can't get my head around it. Someone knows how to use it to retrieve the width of the screen... ??

    You can retrieve using DisplayInfo...

    http://developer.BlackBerry.com/native/reference/Cascades/bb__device__displayinfo.html

    Something like...

       inline int  width() { return infoDisplay.pixelSize().rwidth(); }
        inline int  height()    { return infoDisplay.pixelSize().rheight(); }
    
    private:
        bb::device::DisplayInfo infoDisplay;
    
  • show the height and width of the screen

    Is it possible to display the height and width of the screen in a labelfield?

    Yes. To do this, ask yourself two questions:

    (1) is it possible to display a string that I want in a LabelField? (The answer is Yes)

    (2) is it possible to set the height and width of the screen in a string? (The answer is Yes)

    (3) is it possible to find the height and width of the screen? (The answer is Yes)

    Now, just try to find how to do it ask these three questions. #1 is right there in the documentation for class, LabelField . #2 is trivial if all goes well. # 3, take a look in the view class.

  • Images to the width of the screen

    Hello

    So I was wondering.

    When you look at all the tutorials, I see that people have photos/pictures and stuff even to the entire width of the screen?

    I did it with a large image in browserfill but I don't think it's the right way.

    Or how to do this with the slide show?

    Anyone with some intell?

    THX!

    Create a div with the square tool, stretch the handle to the edge of the fabric until you get the red line, and then use your image as background.

  • How to fill the entire width of the screen on a phone

    Hello

    I am currently doing a small mobile page with Edge. I defined the project to 640px width to fit perfectly on the screen of the iphone. However if re-directed the page in Safari there are always a few pixels on the right side that are white. Optimally the screen should be default fillesd (also if it is used by a phone with an another width in pixels). I tried to work with the persentages to get a reactivity going on but it doesn't seem to work. The band of white pixels don't disappear.

    Can someone provide me with a solution?

    See you soon!

    Try to set a meta tag for the page HTML of your project before theTag:<p class="reply"> <p class="reply"><meta name="viewport" content="width = device-width, initial-scale = 1 /></p> <p class="reply">This will make it so your page fills to the width of the viewport.</p> <p class="reply">Here's a good resource to learn more about mobile meta tags and how they can be applicable to your HTML projects</p> <p class="reply"><a href=" http://mobile.tutsplus.com/tutorials/iphone/iphone-web-app-meta-tags/"="">http://mobile.tutsplus.com/tutorials/iPhone/iPhone-web-app-meta-tags/</p> <p class="reply">Sarah</p>

  • Expand a bunch of photos of different sizes to fill the height or the width of the screen

    I am able to get some images from 720 x 480 to filll quickly a space of 1920 x 1080 by enlarging the scale of one to fill the screen and selecting one bunch of others and paste this one attribute on each of them.

    However, if I have a bunch of pictures which are all different sizes is there a quick way to fill either the height or width, depending on the?

    Now, if I have 100 pictures of different sizes I individually expansion each to fill the screen.

    A second option would be to leave the PrPro to do that with scale by default image size de.the Scaling algorithms have been considerably improved from CS5, so now is as good or better than Photoshop to do this. It isn't always like that.

    Good luck

    Hunt

  • How to get the height and width of the screen of the blackberry device?

    Can someone tellme how to get details of the screen of the blackberry device?

    Display.getWidth () and Display.getHeight ().  If this isn't what you want, let us know.

  • Align the planning of block of text to the width of the screen

    I want to show the text and some menu items perfectly aligned in the upper part of a wide screen.

    There is an example of what I mean at the top of this message compose the page with bread at the top left and the menu at the top right. In the case of the page I see the guy on the left is much larger than the type on the right, so I want the baseline of the line upwards across the screen.

    It's pretty easy using CSS and Dreamweaver, but I can't figure out how to get the same effect on the edge of reflow.

    Not quite if I followed exactly your problem, so I tried three ways to show how to keep the text alignment bottom even when they are of different sizes. I have the Margin, Padding and line height. Check out the project attached reflow to see.

    Download the project: https://creative.adobe.com/file/0484eb2d-b3bc-431d-98a9-865d51cb448a

  • How can I make my foot the entire width of the screen with a fluid grid CSS presentation?

    Any ideas?

    #footer {}

    Clear: both;

    color: #FFFFFF;

    min-width: 100%;   I tried max-width and width as well.

    margin-right: 0px;

    left margin: 0px;

    background-repeat: repeat-x;

    background-image: url(/images/footer.jpg);

    }

    I know that it is being supplanted by

    {.gridContainer}

    Width: 88.5%;

    Max-width: 1232px;

    padding-left: 0.75%;

    padding-right: 0.75%;

    margin: auto;

    Clear: none;

    float: none;

    }

    Move your

  • Width of the div on screen

    I have a big div (used as container) and a few smaller that div. smaller divs have defined width, and width of the container is based on the sum of the small divs. Is it possible to define a div so it could automatically auto trimming to match the screen resolution (div is the width of 1381px), or I have to redefine the image used for the div?

    Use static images not resized to the width of the screen.  If they did, they would look deformed.

    As a general rule, you choose a width of page is comfortably displayed by the majority of visitors to your site without having to use the horizontal scroll bar.

    Fixed width (pixel-based), centered layouts are more comfortable to work with.  I think this is why many designers of web sites, use them.  The trick is to find the 'right' width for your target audience.  For most desktop and laptop users, 900 to 1100px is a good range.  For mobile devices, 320 to 480px.

    Related link:

    Google labs - the browser size

    http://browsersize.googlelabs.com/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • with version 3.6.3 disaply is only half of the screen

    I've updated to version 3.6.3 and now the screen is half of my big screen. Google Crome uses the entire screen and IE 3/4 of it. I'm looking on the site of the Washington Post. Thank you

    This has happened

    Each time Firefox opened

    is after 3.6.3 upgrade

    Width or height?
    Some pages are coded with a fixed width.
    In this case, Firefox doesn't fill the entire width of the screen.
    You can zoom the page through the view > Zoom > Zoom in (Ctrl +), but this will enlarge everything on this page.
    Make sure 'Zoom text only' is not selected.

  • Satellite 1410-303: black vertical banner on the far right of the screen

    Hi all

    I had to format my Satellite 1410 303, and then I added also 256 MB of RAM so the total is now 512 MB. It works fine but the problem is that now I have a black vertical bar, which covers about one inch from the far right of the screen and when you move the mouse it the "offsets" to the right, but the black bar monitor remains in place. Very annoying.

    Also, since I formatted the laptop, I do not have the controls in Toshiba or utility, so I can't change the width of the screen, or perform any other work related operations.

    Your help is very appreciated.

    As a first step, it will be interesting to know something about the pre-installed OS and drivers. I assume that you used your own CD of facilities and the recovery media not original. Am I right about that?

    What drivers you have installed, in particular display driver?

  • Satellite A300 - Strip on the bottom of the screen

    Hello

    I don't have why the graph at the bottom of my screen is completely ruined. At the bottom of the screen, it appears a stretching from 3 cm big, white and flashing strip (half transparent and half composed of tiny black horizontal lines parallel) across the width of the screen. In addition, there is a very narrow line vertical, blue light, also spanning the entire height of the screen.

    Below are the details of my computer.

    Could anyone suggest me how to do it please?

    Satellite A300-1EC
    Microsoft Windows Vista Home Premium 6.0.6002 Service Pack 2
    BIOS Version 1.60
    Intel (r) Core (TM) 2 Duo CPU T5750 @ 2.00 GHz
    2048 MB RAM
    Disk memory hard 158,466,916,352 147.584 [GB]
    Disk space free 40,387,534,848 37.614 [GB]
    Video Mobile Intel (r) 965 Express Chipset Family = 7.14.10.1329 card
    Monitor resolution 1280 x 800
    Quality of transaction color true color (32)
    Realtek High Definition Audio = 6.0.1.5559
    Internet Explorer 8.0.6001.18882
    IDE FUJITSU MHZ2160BH G1

    Hi andre.bo,

    You may notice the same problem on an external monitor? I had a similar problem, but after I tried an external monitor, I noticed, it was related only to the internal display and not the graphics card.
    Check this box!

    In addition, you can get all the spare parts Toshiba from an authorized service provider and guys can fix this problem too! :)

Maybe you are looking for