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 Update on Monday, May 27th 2025

A design question.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlcomboboxtumbler
5 Posts 2 Posters 1.9k 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.
  • J Offline
    J Offline
    J.Hilk
    Moderators
    wrote on 5 Oct 2017, 06:51 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.

    R 1 Reply Last reply 5 Oct 2017, 06:54
    0
    • J J.Hilk
      5 Oct 2017, 06:51

      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.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 5 Oct 2017, 06:54 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 1 Reply Last reply 5 Oct 2017, 07:04
      2
      • R raven-worx
        5 Oct 2017, 06:54

        @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 Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 5 Oct 2017, 07:04 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.

        R 1 Reply Last reply 5 Oct 2017, 07:05
        0
        • J J.Hilk
          5 Oct 2017, 07:04

          @raven-worx

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

          R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 5 Oct 2017, 07:05 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 1 Reply Last reply 5 Oct 2017, 07:45
          0
          • R raven-worx
            5 Oct 2017, 07:05

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

            J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 5 Oct 2017, 07:45 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

            5/5

            5 Oct 2017, 07:45

            • Login

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