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

Selected Widget does not get Highlighted

XMLWordPrintable

    • Linux/X11, Windows

      In Qt 6.7.3 and earlier and in Qt 5.15 and Qt 5.13, when a widget is selected with 
          setProperty("selected", true);
      the widget & labels get highlighted with a blue background and a blue border.
      See image below:

       

      However, this highlighting no longer happens in Qt 6.8.x, 6.9.x and 6.10.0.

      Code:

      class UICallBoothWidget: public QWidget \{ . . . };
      
      void UICallBoothWidget::selectionChangedUICallBoothSlot()
      {    
          bool selected = m_uicall_booth.getSelected();    
          // set, selected = true;    
          setProperty("selected", selected);     
          m_ui.content_icon_panel->setProperty("selected", selected);     
          m_ui.content_text_label->setProperty("selected", selected); 
      }
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            thaxila Thaxila Karunatillake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes