Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Android Progress bar
QtWS25 Last Chance

Qt Android Progress bar

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 792 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.
  • K Offline
    K Offline
    kdbcz
    wrote on 4 Dec 2019, 11:18 last edited by
    #1

    Hello,

    I made progress bars on android Qt 5.10.0.
    How can I disable the horizontal lines at 50% and at 75% (you can see it on the photo)?
    The lines do not appear in the designer, they are appear only on Android.

    Thank You!!pbar.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 5 Dec 2019, 09:30 last edited by
      #2

      Please share the code you have used to create these progress bars.

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kdbcz
        wrote on 6 Dec 2019, 16:19 last edited by
        #3

        Hello,

        I created it in qt creator designer, there is no code what I wrote for it. There are no lines in the preview in the designer. The lines only show on android. I tried two different android devices with different android versions, but the result is same.
        No lines if I set QApplication::setStyle("fusion"); but in this case other things go wrong style.

        S 1 Reply Last reply 8 Dec 2019, 09:03
        0
        • K kdbcz
          6 Dec 2019, 16:19

          Hello,

          I created it in qt creator designer, there is no code what I wrote for it. There are no lines in the preview in the designer. The lines only show on android. I tried two different android devices with different android versions, but the result is same.
          No lines if I set QApplication::setStyle("fusion"); but in this case other things go wrong style.

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 8 Dec 2019, 09:03 last edited by
          #4

          @kdbcz said in Qt Android Progress bar:

          I created it in qt creator designer, there is no code what I wrote for it.

          Still, without seeing that generated code I can't guess anything.

          (Z(:^

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kdbcz
            wrote on 8 Dec 2019, 16:49 last edited by
            #5

            <?xml version="1.0" encoding="UTF-8"?>
            <ui version="4.0">
            <class>Vs_set</class>
            <widget class="QDialog" name="Vs_set">
            <property name="geometry">
            <rect>
            <x>0</x>
            <y>0</y>
            <width>936</width>
            <height>531</height>
            </rect>
            </property>
            <property name="windowTitle">
            <string>Dialog</string>
            </property>
            <property name="modal">
            <bool>false</bool>
            </property>
            <widget class="QPushButton" name="pb_ok">
            <property name="geometry">
            <rect>
            <x>656</x>
            <y>488</y>
            <width>75</width>
            <height>23</height>
            </rect>
            </property>
            <property name="text">
            <string>PushButton</string>
            </property>
            </widget>
            <widget class="QProgressBar" name="progressBar">
            <property name="geometry">
            <rect>
            <x>124</x>
            <y>140</y>
            <width>277</width>
            <height>23</height>
            </rect>
            </property>
            <property name="value">
            <number>24</number>
            </property>
            </widget>
            <widget class="QProgressBar" name="progressBar_2">
            <property name="geometry">
            <rect>
            <x>496</x>
            <y>124</y>
            <width>29</width>
            <height>221</height>
            </rect>
            </property>
            <property name="value">
            <number>24</number>
            </property>
            <property name="orientation">
            <enum>Qt::Vertical</enum>
            </property>
            </widget>
            </widget>
            <resources/>
            <connections/>
            </ui>

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 8 Dec 2019, 19:46 last edited by
              #6

              Oh, a widget. I thought you were using QML. No sure, then, official styling reference does not mention any bars like you observe. Try using custom styleshet https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar maybe it will help/

              (Z(:^

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kdbcz
                wrote on 9 Dec 2019, 17:38 last edited by
                #7

                I already tried stylesheet, but I also did not find nothing about these lines. With the same source on linux no lines, only on android.

                Thank You!

                S 1 Reply Last reply 10 Dec 2019, 06:33
                0
                • K kdbcz
                  9 Dec 2019, 17:38

                  I already tried stylesheet, but I also did not find nothing about these lines. With the same source on linux no lines, only on android.

                  Thank You!

                  S Offline
                  S Offline
                  sierdzio
                  Moderators
                  wrote on 10 Dec 2019, 06:33 last edited by
                  #8

                  @kdbcz said in Qt Android Progress bar:

                  I already tried stylesheet, but I also did not find nothing about these lines. With the same source on linux no lines, only on android.

                  Thank You!

                  My point is that if you force a custom stylesheet, the lines might go away, even if you don't specifically target them.

                  (Z(:^

                  1 Reply Last reply
                  0

                  8/8

                  10 Dec 2019, 06:33

                  • Login

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