Results 1 to 2 of 2

Thread: Alternative to QGrpahicsView?

  1. #1
    Join Date
    Apr 2016
    Qt products
    Unix/X11 Windows

    Question Alternative to QGrpahicsView?

    I'm maintaining a module of a desktop software visualizing industrial data, imagine multiple coordinate axes, lines, custom shapes, lots of information next to the coordinate axes. Most of the stuff is interactive and performance is critical. It originates in QT3 or even QT2 and essentially uses QPainter on a QImage displayed in a raw QWidget.

    Extending it becomes more and more of a burden and I was looking into refactoring it to a more modern and flexible QGraphicsView /-scene pattern, but stumbled upon posts like Should you be using QGraphicsView.

    Is this warning still up-to-date?
    What are reasonable alternatives when using a widget-based desktop application?

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 759 Times in 749 Posts
    Qt products
    Windows Android

    Default Re: Alternative to QGrpahicsView?

    I develop large C++, QWidget-based desktop applications with tens to often more than 100 QWidget-based views, dialogs, or other components. I use the Graphics / View framework often, because often I must derive a customized QGraphicsItem to represent something specialized and it is far easier to let the framework take care of coordinates and transformations that to write it by hand using QPainter.

    I have kept QtQuick on the radar since it was first developed, and I can't see that I would ever use it for a desktop application of the type I develop (and from the sound of it, the type you develop as well). It is hard enough with UI implementation split between Qt Designer UI files and C++ code. Adding QML into that mix would make managing (and debugging) a complex project nearly impossible.

    My personal opinion, based on what I do for a living. QtQuick / QML are probably the tools of choice for embedded or mobile apps with relatively straightforward UIs, but that's not where I work.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Ho do I Expand QGrpahicsView off screen inside a QScrollArea?
    By hybrid_snyper in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2013, 22:21
  2. Is there a C++ alternative to QML/Qt Quick?
    By Awareness in forum Newbie
    Replies: 6
    Last Post: 1st May 2013, 00:57
  3. QAssistantClient in Qt 4.7.3 alternative
    By Raghaw in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2011, 08:45
  4. alternative for strtok_s in QT??
    By Gokulnathvc in forum Newbie
    Replies: 1
    Last Post: 15th April 2011, 13:14
  5. alternative to COM??
    By TheKedge in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 16:02


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.