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

Qt Android Progress bar

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 813 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.
  • K Offline
    K Offline
    kdbcz
    wrote on 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
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on 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 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.

        sierdzioS 1 Reply Last reply
        0
        • K kdbcz

          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.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on 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 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
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on 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 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!

                sierdzioS 1 Reply Last reply
                0
                • K kdbcz

                  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!

                  sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on 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

                  • Login

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