Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Static QML screen size
Forum Updated to NodeBB v4.3 + New Features

Static QML screen size

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bluestreak
    wrote on 3 Jul 2012, 16:41 last edited by
    #1

    Hi,

    I am trying to use Qt Quick to make a touch application which is on an odd-sized touch screen: 1280 * 242. I want to be able to view the application as it will be, always at this size, without any other scaling. Is there anyway I can set the screen size to be static so I can see what the application will be like without having to drag it from its standard iphone like set up every time? I've tried setting the height and width of the elements to the appropriate size, but it seems to have no effect, and remains the same iphone-ish size.

    Thanks in advance

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ludde
      wrote on 4 Jul 2012, 11:10 last edited by
      #2

      I guess this depends on how you run your Qt Quick application, and possibly also what target you are building it for and running it on. If you have access to the declarative view showing your QML it should be fairly easy to either

      1. Set the size of the declarative view and make sure its resize mode is set to QDeclarativeView::SizeRootObjectToView

      or

      1. Set the size of your top QML element and make sure the view's resize mode is set to QDeclarativeView::SizeViewToRootObject
      1 Reply Last reply
      0

      1/2

      3 Jul 2012, 16:41

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved