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. Configuring QtGui for only QGraphicsView
Forum Updated to NodeBB v4.3 + New Features

Configuring QtGui for only QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.5k 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.
  • N Offline
    N Offline
    neil.haran
    wrote on last edited by
    #1

    In the interests of minimizing binary size (and resource usage on my embedded target) I'd like to configure Qt to be as small as possible.

    We already use static linking and a minimal config.h. It occurred to me that by far the majority of code in QtGui must be QWidget and all of it's ancestors - none of which our application requires.

    Has anyone ever tried to configure Qt down this much?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      burkhard.stubert
      Qt Champion 2021
      wrote on last edited by
      #2

      If you don't do it already: For an embedded target, you could use the auxiliary tool qconfig: see the keyword "Fine-Tuning Features in Qt" in the Qt documentation. It is a simple GUI that lets you select and de-select the features or class you want excluded. It makes sure that class depending on an excluded class are excluded, too.

      You cannot get rid of QWidget itself, because QGraphicsView inherits QWidget. But I would expect that most of the classes derived from QWidget should disappear. If you look at src/corelib/global/qfeatures.txt and search for "# Widgets", "# Dialogs", "# ItemViews", and "# Styles", you get a pretty good idea, what can and will be removed.

      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