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. QGraphicsView Performance
Forum Updated to NodeBB v4.3 + New Features

QGraphicsView Performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 224 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.
  • B Offline
    B Offline
    BoLin
    wrote on last edited by
    #1

    I am creating a node editor and using QGraphicsView to implement nodes, their connection ports, and the lines connecting them. The problem I encountered is that if I generate a lot of nodes but do not use wires to connect them, the situation is fine, but if I use wires to connect between ports, it will be very sluggish

    My QGraphicsView Configuration:

    setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform);
    setCacheMode(QGraphicsView::CacheBackground);
    setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate);

    I tried to pass the level of anti aliasing, but it didn't have much effect

    A JoeCFDJ 2 Replies Last reply
    0
    • B BoLin

      I am creating a node editor and using QGraphicsView to implement nodes, their connection ports, and the lines connecting them. The problem I encountered is that if I generate a lot of nodes but do not use wires to connect them, the situation is fine, but if I use wires to connect between ports, it will be very sluggish

      My QGraphicsView Configuration:

      setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform);
      setCacheMode(QGraphicsView::CacheBackground);
      setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate);

      I tried to pass the level of anti aliasing, but it didn't have much effect

      A Offline
      A Offline
      Asperamanca
      wrote on last edited by
      #2

      @BoLin
      If you use cosmetic pens with non-zero width, this is extremely slow.
      Otherwise I don't know enough about your use case to make suggestions.

      1 Reply Last reply
      0
      • B BoLin

        I am creating a node editor and using QGraphicsView to implement nodes, their connection ports, and the lines connecting them. The problem I encountered is that if I generate a lot of nodes but do not use wires to connect them, the situation is fine, but if I use wires to connect between ports, it will be very sluggish

        My QGraphicsView Configuration:

        setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform);
        setCacheMode(QGraphicsView::CacheBackground);
        setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate);

        I tried to pass the level of anti aliasing, but it didn't have much effect

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @BoLin just curious. How do you connect two nodes?

        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