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. Problem With The QGraphicsView fitInView.

Problem With The QGraphicsView fitInView.

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 303 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.
  • S Offline
    S Offline
    Sebastian
    wrote on last edited by
    #1

    Dear All,
    I am having a layout.
    On the top we have a QLabel then we have QGraphicsView in mid and then again we have QLabel in down in QVBoxLayout.
    Previously we have the fitInView which works normally. so we dont have any issues.
    Now with the down QLabel we now started word wrapping . Now my QGraphicsView does not fitinView Properly.

    I tried to reimplement the resizeEvent then implement fitInView in that but this also does not solve my problem.

    What i understood somehow layout change due to word wrapping of the label does not update so fitInVIew does not work
    I am sure about this because if we resize manually the layout fitInView works perfectly.

    Please if someone has any idea how can we resolve this?

    TIA
    bolded text

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Since you marked the thread as solved, can you explain how you solved your issue ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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