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. Chartview resizing problem

Chartview resizing problem

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 816 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.
  • V Offline
    V Offline
    Vijaykarthikeyan
    wrote on last edited by
    #1

    I have been creating a 2d chartview in QML.. the chartview is in the smaller size places at the right corner of the window..When the window is in fullscreen size,the chartview fits correctly according to the specific size..But, When the Application window resizes,the chartview shrunken too much..i could not see the plot in the graph.

    Before Resizing/fullscreen mode:
    Screenshot 2023-10-06 114828.png

    after resizing/ resized window

    Screenshot 2023-10-06 114848.png

    B 1 Reply Last reply
    0
    • V Vijaykarthikeyan

      I have been creating a 2d chartview in QML.. the chartview is in the smaller size places at the right corner of the window..When the window is in fullscreen size,the chartview fits correctly according to the specific size..But, When the Application window resizes,the chartview shrunken too much..i could not see the plot in the graph.

      Before Resizing/fullscreen mode:
      Screenshot 2023-10-06 114828.png

      after resizing/ resized window

      Screenshot 2023-10-06 114848.png

      B Offline
      B Offline
      Bob64
      wrote on last edited by
      #2

      @Vijaykarthikeyan the only thing that changes when the chart area is reduced is the space that the chart view may occupy. It doesn't do anything such as shrink axis labels and other text. Therefore, there will be a minimum size below which your chart is not useful.

      You could restrict the minimum size of your application window so that the chart never gets too small.

      V 1 Reply Last reply
      1
      • B Bob64

        @Vijaykarthikeyan the only thing that changes when the chart area is reduced is the space that the chart view may occupy. It doesn't do anything such as shrink axis labels and other text. Therefore, there will be a minimum size below which your chart is not useful.

        You could restrict the minimum size of your application window so that the chart never gets too small.

        V Offline
        V Offline
        Vijaykarthikeyan
        wrote on last edited by
        #3

        @Bob64 No,you have to declare the margins for correct size during resizing,you have to set its all margins to 0 and reduce the font's pixel size of all the labels and clip the graph to the rectang;e..that helped me to sort out the resizing problem

        1 Reply Last reply
        0
        • V Vijaykarthikeyan has marked this topic as solved on

        • Login

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