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. How to hide GridView when zooming in a picture shown on QGraphicsView
Forum Updated to NodeBB v4.3 + New Features

How to hide GridView when zooming in a picture shown on QGraphicsView

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 254 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.
  • V Offline
    V Offline
    Vesper
    wrote on last edited by
    #1

    A picture is shown on screen using QGraphicsScene and QGraphicsView. When I zoom in, the GridView appears in front of the picture (see below)
    3026648d-081f-4866-a322-01e406d52780-image.png
    How can I hide the GridView when zooming in, make those small squares become smooth like shown with QLabel (see below)
    126ecb51-b716-447d-8e9f-101e8aee5f73-image.png

    JonBJ jsulmJ Pl45m4P 3 Replies Last reply
    0
    • V Vesper

      A picture is shown on screen using QGraphicsScene and QGraphicsView. When I zoom in, the GridView appears in front of the picture (see below)
      3026648d-081f-4866-a322-01e406d52780-image.png
      How can I hide the GridView when zooming in, make those small squares become smooth like shown with QLabel (see below)
      126ecb51-b716-447d-8e9f-101e8aee5f73-image.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Vesper
      Hello, welcome. I am not aware of any "GridView" on a QGraphicsView (or a QGraphicsScene), unless you draw one yourself. Which presumably you don't do, and it wouldn't look like this anyway. So although I can see a difference between the two pictures I don't know what/why. What is the code for each one, how do you show the picture, how do you zoom?

      1 Reply Last reply
      0
      • V Vesper

        A picture is shown on screen using QGraphicsScene and QGraphicsView. When I zoom in, the GridView appears in front of the picture (see below)
        3026648d-081f-4866-a322-01e406d52780-image.png
        How can I hide the GridView when zooming in, make those small squares become smooth like shown with QLabel (see below)
        126ecb51-b716-447d-8e9f-101e8aee5f73-image.png

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Vesper Maybe you're simply zooming in so much that the pixels becomes big squares?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • V Vesper

          A picture is shown on screen using QGraphicsScene and QGraphicsView. When I zoom in, the GridView appears in front of the picture (see below)
          3026648d-081f-4866-a322-01e406d52780-image.png
          How can I hide the GridView when zooming in, make those small squares become smooth like shown with QLabel (see below)
          126ecb51-b716-447d-8e9f-101e8aee5f73-image.png

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @Vesper

          There is no "gridview"... it's the image resolution from zooming too close.
          I dont know for sure, but maybe QGraphicsView has a lower resolution than images on QLabel


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          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