Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Fixed
-
Affects Version/s: 6.2.1
-
Fix Version/s: 6.2.3, 6.3.0 Feature Freeze
-
Component/s: Quick: Controls 2
-
Labels:None
-
Platform/s:
-
Commits:ca54be7882ad1cdce59b30146abd8bdb6f464298 (qt/qtdeclarative/6.2) e9bdafcfad0f09d15b710a3bca5acae2604c14bc (qt/qtdeclarative/dev)
Description
If a Slider has a negative width, the application crash.
Here is the code to reproduce:
import QtQuick import QtQuick.Window import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Slider { width: -100 } }
The workaround is to add a condition to the visible property:
visible: width > 0