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

Fast dialogs on QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.3k 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.
  • O Offline
    O Offline
    onurozcelik
    wrote on last edited by
    #1

    In our project we use QGraphicsView and custom QGraphicsItem classes to paint our GUI. On some occasions we need to inform the user about faulty actions that user performs on GUI. We choose QMessageBox to inform the user. But when our custom graphics item count increased on scene QMessageBox is very slow to display. How can we make faster dialogs on QGraphicsScene.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      It depends on how you use the QMessageBox. If you use one of the static functions or exec(), I suggest you try using show() or open() instead and see if it helps. The reason to try this is that the static functions and exec() either start a new event loop or call processEvents(), both of which can severely muck with event handling efficiency.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #3

        Obviously if the entire GUI is painted in one paint event it might also be the case that your paint event just takes a hell of a lot of time, which will more or less be amplified by the exec() issue.

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        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