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. QSplitter for QML?
Forum Updated to NodeBB v4.3 + New Features

QSplitter for QML?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 1.3k Views 2 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.
  • joeQJ Offline
    joeQJ Offline
    joeQ
    wrote on last edited by joeQ
    #1

    what item object can do like QSplitter class in QtWidget let the user can adjust layout from mouse?
    or what way to do that in QML and Quick?

    Just do it!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      In QML layouts, you have the Layout attached property, which allows more positioning options than in widget world. If that is not enough, however, I recommend just using a dummy Item component. Items are invisible but can have width/ height so they act pretty much the same as spacers in widgets.

      (Z(:^

      joeQJ 1 Reply Last reply
      1
      • sierdzioS sierdzio

        In QML layouts, you have the Layout attached property, which allows more positioning options than in widget world. If that is not enough, however, I recommend just using a dummy Item component. Items are invisible but can have width/ height so they act pretty much the same as spacers in widgets.

        joeQJ Offline
        joeQJ Offline
        joeQ
        wrote on last edited by joeQ
        #3

        @sierdzio Hi, friend.

        I find QtQuick.Controls has SplitView. It can let user to use mouse to adjust layout. SplitView is i want. Thank u.

        oh, Sorry. i used wrong class name before.

        Just do it!

        sierdzioS 1 Reply Last reply
        2
        • joeQJ joeQ

          @sierdzio Hi, friend.

          I find QtQuick.Controls has SplitView. It can let user to use mouse to adjust layout. SplitView is i want. Thank u.

          oh, Sorry. i used wrong class name before.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @joeQ said in QSplitter for QML?:

          oh, Sorry. i used wrong class name before.

          No problem, you've found your answer so all is good :)

          (Z(:^

          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