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. Problem in progressbar
QtWS25 Last Chance

Problem in progressbar

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 493 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.
  • ashajgA Offline
    ashajgA Offline
    ashajg
    wrote on last edited by ashajg
    #1

    Hi

    I am trying to make a progressbar situated inside a rectangular button in vertical orientation and i am setting value of progress bar to 0.8

    import QtQuick 2.9
    import QtQuick.Window 2.2
    import QtQuick.Controls 1.4
    import QtGraphicalEffects 1.0
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
        color:"black"
    
    Rectangle
    {
    
    height:100
    width:100
    color:"gray"
    
    
    anchors.centerIn: parent
    
    ProgressBar
    {
    
        orientation: Qt.vertical
        value:0.8
        height:100
        width:10
    
    }
    }
    
    
    
    
    }
    

    ////////

    0_1547719592451_f9b935f2-fefe-4fd2-b07f-c61c81998587-image.png

    the progress bar is not raising upto 0.8 level and I am getting a line at 0.8 level

    How can I solve this problem?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Yes it is a issue. Try to use the ProgressBar from import QtQuick.Controls 2.4. I have not check it.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      ashajgA 1 Reply Last reply
      1
      • dheerendraD dheerendra

        Yes it is a issue. Try to use the ProgressBar from import QtQuick.Controls 2.4. I have not check it.

        ashajgA Offline
        ashajgA Offline
        ashajg
        wrote on last edited by
        #3

        @dheerendra ok Sir

        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