Results 1 to 2 of 2

Thread: Alternative to QGrpahicsView?

  1. #1
    Join Date
    Apr 2016
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    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
    Location
    Alameda, CA, USA
    Posts
    4,684
    Thanks
    257
    Thanked 747 Times in 737 Posts
    Qt products
    Qt5
    Platforms
    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, 21:21
  2. Is there a C++ alternative to QML/Qt Quick?
    By Awareness in forum Newbie
    Replies: 6
    Last Post: 30th April 2013, 23:57
  3. QAssistantClient in Qt 4.7.3 alternative
    By Raghaw in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2011, 07:45
  4. alternative for strtok_s in QT??
    By Gokulnathvc in forum Newbie
    Replies: 1
    Last Post: 15th April 2011, 12:14
  5. alternative to COM??
    By TheKedge in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 15:02

Bookmarks

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.