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. A design question.
Forum Updated to NodeBB v4.3 + New Features

A design question.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlcomboboxtumbler
5 Posts 2 Posters 2.0k 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.
  • J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #1

    Hello everyone,

    I'm still stumbling in my QML-Adventure and I've come across something strange.

    If you create an UI with widgets and use some standart Widgets like a QComboBox or a QSpinbox, it translates to OS specific looks that everyone recognizes.

    Example: the tumbler that moves up from the bottom of the screen.
    alt text

    If you do the same with the QML-equivalent SpinBox or ComboBox

    You get this:
    alt text

    with a popup menu.

    Am I missing some settings here, or is this intended behaviour, and one has to use a Tumbler and customize that?
    Position, fade in and out etc.

    I find this strange, because I thought QML was specifically designed and created with mobile applications in mind.


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    raven-worxR 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      Hello everyone,

      I'm still stumbling in my QML-Adventure and I've come across something strange.

      If you create an UI with widgets and use some standart Widgets like a QComboBox or a QSpinbox, it translates to OS specific looks that everyone recognizes.

      Example: the tumbler that moves up from the bottom of the screen.
      alt text

      If you do the same with the QML-equivalent SpinBox or ComboBox

      You get this:
      alt text

      with a popup menu.

      Am I missing some settings here, or is this intended behaviour, and one has to use a Tumbler and customize that?
      Position, fade in and out etc.

      I find this strange, because I thought QML was specifically designed and created with mobile applications in mind.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @J.Hilk said in A design question.:

      Am I missing some settings here, or is this intended behaviour, and one has to use a Tumbler and customize that?

      intended behavior.
      Thats why there is a Tumbler element available.

      And thats good. This way you can have both widget types on all platforms, instead of being forced into using one.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      J.HilkJ 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @J.Hilk said in A design question.:

        Am I missing some settings here, or is this intended behaviour, and one has to use a Tumbler and customize that?

        intended behavior.
        Thats why there is a Tumbler element available.

        And thats good. This way you can have both widget types on all platforms, instead of being forced into using one.

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @raven-worx

        That's unfortunate! For me, this complicates things significantly. T_T


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        raven-worxR 1 Reply Last reply
        0
        • J.HilkJ J.Hilk

          @raven-worx

          That's unfortunate! For me, this complicates things significantly. T_T

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @J.Hilk
          and why?
          Maybe you are just dealing with the issue not right

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          J.HilkJ 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @J.Hilk
            and why?
            Maybe you are just dealing with the issue not right

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @raven-worx

            Ok, a short summary.
            I have an App containing a header, a Menu that can be faded in and out and a Stackview displaying different things, depending an the Menu-Selection. All nested in a Scroll area that expands, depending on the height of the qml-file displayed in the stackview and on the visibility of the menu.

            To garantie that the Tumbler object is like the default Tumbleritem and that it is always at the same spot and with the same size, it has to be part of the root qml file and hast to be feed with content by the stackview and hast to send the information about the selection back again

            That means a alot of signals/slots and/or cross file properties etc.

            All in all something I have done before, in c++. But a lot of work for an optical gimmick and I'm tempted to leave the defalt ComboBox and SpinBox objects in there, even so it breaks the mobile-immersion


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            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