Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Alternate way to handle fitInView() method
Qt 6.11 is out! See what's new in the release blog

Alternate way to handle fitInView() method

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 907 Views 2 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.
  • keksi venksiK Offline
    keksi venksiK Offline
    keksi venksi
    wrote on last edited by
    #1

    I have a graphicsview . I have applied transform to the graphicsview
    (rotate 90 ). if i apply fitInView to the graphicsview it makes scene to go invisible

    keksi venksiK 1 Reply Last reply
    0
    • keksi venksiK keksi venksi

      I have a graphicsview . I have applied transform to the graphicsview
      (rotate 90 ). if i apply fitInView to the graphicsview it makes scene to go invisible

      keksi venksiK Offline
      keksi venksiK Offline
      keksi venksi
      wrote on last edited by
      #2

      @keksi-venksi

      Can any one help me on this issue .

      fitInView does not works fine with the rotated graphicview

      1 Reply Last reply
      0
      • JohanSoloJ Offline
        JohanSoloJ Offline
        JohanSolo
        wrote on last edited by
        #3

        First, be patient, there's noone paid around here to answer questions.

        Stupid question, but since you rotated your view, are the coordinate you're putting in fitInView rotated as well?

        `They did not know it was impossible, so they did it.'
        -- Mark Twain

        keksi venksiK 1 Reply Last reply
        0
        • JohanSoloJ JohanSolo

          First, be patient, there's noone paid around here to answer questions.

          Stupid question, but since you rotated your view, are the coordinate you're putting in fitInView rotated as well?

          keksi venksiK Offline
          keksi venksiK Offline
          keksi venksi
          wrote on last edited by
          #4

          @JohanSolo

          Heartly Thanks for your reply

          in the normal mode im using view->fitInView(rect.x(),0,rect.width(),30)

          in the 90 degree rotated mode im using view->fitInView(0,rect.y(),30,rect.height())

          I have tried with different combinations of fitInView for 90 degree rotataion Nothing works

          Can you suggest me the coordinates for the fitInView() for the rotated view

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Closed, double posting. Please continue using this thread.

            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