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. [SOLVED] QML Selective LayoutMirroring (Child override parent mirroring).
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QML Selective LayoutMirroring (Child override parent mirroring).

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.6k 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.
  • H Offline
    H Offline
    Hornsj2
    wrote on last edited by
    #1

    I have a hierarchy of QML files forming my application (as normal).

    The application has support for RightToLeft languages such as Hebrew, so we use LayoutMirroring.childrenInherit to switch layout direction via the parent (main.qml) when we switch language settings.

    The problem is there are two QML files I do not want to respect the parent-child layout dependency created by LayoutMirroring.childInherit. I want to always have these certain files in LeftToRight layout.

    Is this possible?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hornsj2
      wrote on last edited by
      #2

      I found the solution.

      I simply added LayoutMirroring.childInherit: true and LayoutMirroring.enabled: false to the child QML files in question and that seems to prevent any further flow-down from the main qml file.

      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