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

Resizable Progress Bar - QML

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.4k 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.
  • Q Offline
    Q Offline
    QtIs2Cool
    wrote on last edited by
    #1

    Hello,

    I'm looking for a way to have a progress bar resize if the window is resized. It comes down to the intrinsicWidth and intrinsicHeight in the ProgressBarStyle properties. Once they're set (and they must be set), it seems I cannot resize the progress bar, no matter how many anchors I set up in various places.

    Has anyone found a way around this before?

    Thanks.

    Brian

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      Did you try to avoid anchors and to use Layout or to change directly the width of the progress bar ?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        QtIs2Cool
        wrote on last edited by
        #3

        I do not know how to avoid anchors and get the progress bar to change size with the parent object size (be it a window or simple rectangle).

        If I use just a progress bar without a ProgressStyle, then I'm limited to whatever the base OS style is, and can't even change something like the color of the bar.

        If I try to set the intrinsic properties of ProgressStyle on the fly, they get set once, and then forever afterward they are the same.

        I am having some luck just doing this myself with rectangles, and avoiding the progress bar altogether.

        Thanks.

        Brian

        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