Qt Android Progress bar
-
Please share the code you have used to create these progress bars.
-
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. -
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.@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.
-
<?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> -
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/
-
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!
@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.