Results 1 to 4 of 4

Thread: landscape to portrait

  1. #1
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default landscape to portrait

    hi,

    I am new to QT. I am using Touchscreen TFT with 800x840(Landscape) resolution. I started my TFT and Touch screen and in QT Example it works fine.

    Actually my end product have dimension in 480x800 portrait. I need to use same LCD for that so i have to make all the widget in portrait mode and rotate at run time to display on TFT. This is possible in QT. QT have this type of function make landscape to portrait rotation.

    Please reply if any one knows answer.

    Kunjal

  2. #2
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: landscape to portrait

    I don't think you need to worry about this as its handled by the underlying 'operating system'. 'X' on *nix, DirectX on Windows etc
    Got to keep the loonies on the path ...

  3. #3
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: landscape to portrait

    My TFT size is 800 W x 480 H. But in my end product i want to show whole screen 480 W x 800 H so i need to rotate all the forms to 90 deg before it show on TFT. I make my form in qt create like 480 x 800 and before show to TFT I rotate it. Can it is possibel?

    Kunjal

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: landscape to portrait

    Typically the OS would know, via the driver for the video, that the panel is oriented one way or the other and return the relevant sizes to the Qt systems. Qt layouts would then adjust to the available geometry.

    Are you saying that the underlying operating system (what is it?) still thinks that the screen is oriented landscape (i.e. returns 800x480) when it is physically mounted in portrait orientation? You might be able to do something with QPainter transforms to effect the rotation but your layouts would not know that this was happening. I would expect that manually adjusting layouts is required.

Similar Threads

  1. Replies: 5
    Last Post: 18th January 2008, 18:52

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.