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

Qt 5 to-do's in QApplication

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • Widgets: Main Window
    • None

    Description

      qtbase/src/widgets/kernel/qapplication.cpp contains two Qt 5 to-do comments:

      qtbase/src/widgets/kernel/qapplication.cpp
      // ######## move to QApplicationPrivate
      // Default application palettes and fonts (per widget type)
      Q_GLOBAL_STATIC(PaletteHash, app_palettes)
      PaletteHash *qt_app_palettes_hash()
      {
          return app_palettes();
      }
      
      Q_GLOBAL_STATIC(FontHash, app_fonts)
      FontHash *qt_app_fonts_hash()
      {
          return app_fonts();
      }
      ...
                      // ### Qt 5 These dynamic tool tips should be an OPT-IN feature. Some platforms
                      // like Mac OS X (probably others too), can optimize their views by not
                      // dispatching mouse move events. We have attributes to control hover,
                      // and mouse tracking, but as long as we are deciding to implement this
                      // feature without choice of opting-in or out, you ALWAYS have to have
                      // tracking enabled. Therefore, the other properties give a false sense of
                      // performance enhancement.
                      if (e->type() == QEvent::MouseMove && mouse->buttons() == 0) {
                          d->toolTipWidget = w;
                          d->toolTipPos = relpos;
                          d->toolTipGlobalPos = mouse->globalPos();
                          d->toolTipWakeUp.start(d->toolTipFallAsleep.isActive()?20:700, this);
                      }
      

      If these can be handled wihtout breaking source-compatibility, they should be actioned for Qt 5.0.0. If not, the comments should be removed or changed to Qt 6 to-do's.

      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
              jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes