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. Rotate the Application Window using QML

Rotate the Application Window using QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlquickvirtualkeyboard
2 Posts 2 Posters 410 Views
  • 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.
  • A Offline
    A Offline
    anushka_prajose
    wrote on 29 May 2024, 06:54 last edited by
    #1

    I am using Qtquick to create a GUI for an HMI application.

    The display which I am using is Waveshare 8DP-CAPLCD. I am using Digi ConnectCore 8M Nano development board to connect to show the GUI on the display.

    I want to have the freedom to rotate the GUI as per the display LCD orientation.

    Currently, I can rotate the rectangle defined inside the application window. But the location of the virtual keyboard is staying the same. Assuming that the virtual keyboard is linked with the application window, I was looking to rotate the application window as well.

    I taking two approaches here :

    1. Find a way to rotate the application window.
    2. Link the virtual keyboard with the rectangle defined inside the application window. The rectangle and keyboard should always be in the same orientation.

    Could someone provide me guidance on any of the two approaches? If someone has the solution for both approaches that would be best.

    I am using the open-source Qt version 6.7 for development and QtCreator 13.0.2.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Markkyboy
      wrote on 29 May 2024, 08:39 last edited by
      #2

      A total guess; Screen QML contains 'orientation' and 'primaryOrientation'.

      https://doc.qt.io/qt-5/qml-qtquick-window-screen.html#orientation-attached-prop

      I'm using Qt5.15, so can't offer any real insight. I assume the monitor you are using is able to /does contain an accelerometer and should be able to rotate either dynamically or by code.

      Don't just sit there standing around, pick up a shovel and sweep up!

      I live by the sea, not in it.

      1 Reply Last reply
      0

      1/2

      29 May 2024, 06:54

      • 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