Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to convert whole qt gui application from portrait to landscape mode
Qt 6.11 is out! See what's new in the release blog

How to convert whole qt gui application from portrait to landscape mode

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 4.7k 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.
  • S Offline
    S Offline
    sushmars
    wrote on last edited by
    #1

    hi,
    i have created a qt GUI application of screen size 240 x 320(portrait mode). Now i need to convert my whole application to 320 x 240(landscape mode), so that properly it will fit in LCD of screen size 320 x 240.
    tell me how to convert my whole application to landscape mode.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      You are talking about classic Qt Widgets, right? Use layouts and it will give you more freedom.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sushmars
        wrote on last edited by
        #3

        Now i am having entirely ready application . And i don't want to alter it. Just i need to change orientation. Any simple way....?

        Thanks for reply.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Using layouts is the simpliest way. If you of course need only sizes changing, not altering elements positions

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sushmars
            wrote on last edited by
            #5

            yes. When i resize my QMainWindow to 320 x 240 , my whole stack widget is truncated. so i need to change orientation of that stack widget. there are so many pages in stack widget

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sushmars
              wrote on last edited by
              #6

              i need to tilt(90 degree i.e orientation from 240x320 to 320x240) my whole qt Gui application.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sushmars
                wrote on last edited by
                #7

                I got by rotating to 90 degree in QGraphicsView. But I am getting horizontal and vertical scroll bars. how to remove those scroll bars.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  manishsharma
                  wrote on last edited by
                  #8

                  may be you can try setVerticalScrollBarPolicy() setHorizontalScrollBarPolicy().

                  1 Reply Last reply
                  0

                  • Login

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