Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70562

Platform themes don't respect QT_NO_GLIB envvar

    XMLWordPrintable

Details

    Description

      1) Build Qt with Glib support enabled.
      2) Run qtbase/examples/widgets/richtext/textedit with QT_NO_GLIB=1 exported.

      QT_NO_GLIB forces Qt to use Unix event dispatcher.

      3) From menu select "Format" -> "Color...". This will open native GTK dialog, by calling QGtk3Dialog::exec() -> gtk_dialog_run() which will spin a local Glib native event loop, but since Qt application is running with Unix dispatcher, Qt won't handle any events until the dialog is dismissed. For example: try resizing main window while the dialog is open, it won't repaint.

      Any GTK-based code in Qt should first check for QT_NO_GLIB when selecting which code path to run - native or qt.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              paeglis Gatis Paeglis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes