Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Get rid of Symbian-specific "active widget" frame.
Forum Updated to NodeBB v4.3 + New Features

Get rid of Symbian-specific "active widget" frame.

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 2 Posters 4.7k 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.
  • R Offline
    R Offline
    razvanpetru
    wrote on last edited by
    #1

    On Symbian non-touch phones widgets have a frame drawn around them when they are the currently D-Pad selected widget. I want to get rid of this frame for selected widgets, as it is not needed and confusing in certain cases.

    Ideas?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fuzzbender
      wrote on last edited by
      #2

      Would it work, if you'd loop through all the QApplication's widgets and when encountering QFocusFrame, you would set its visibility off?

      The widget is not stylesheet-able, so fiddling with stylesheets should not help.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        razvanpetru
        wrote on last edited by
        #3

        @
        QList<QFocusFrame*> frames = findChildren<QFocusFrame*>();
        Q_FOREACH(QFocusFrame* frame, frames)
        {
        frame->hide();
        }
        @
        Didn't find any frames in the parent widget constructor, when it should have found frames for each of four buttons. Maybe the style is creating them on the fly?

        [edit: Code highlighting / Denis Kormalev]

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Fuzzbender
          wrote on last edited by
          #4

          QS60Style creates it automatically when it receives first QEvent::FocusIn event.
          Can you try and get it a while later /after constructor but before painting)?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            razvanpetru
            wrote on last edited by
            #5

            I've looked in q60style and I can see that it's just one frame. Tried to hide it in a button click event for tests, but QFocusFrame::setWidget makes it visible again (calls update which calls show).

            Alternative ideas:

            1. inherit custom style from QS60Style and block the frame creation/set in the event() function.
            2. install event filter on app style (is this even possible?)
            3. install event filter on focus frame and block show events
            4. Set the foreground color of the frame to transparent - this one didn't work.

            What do you think?

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Fuzzbender
              wrote on last edited by
              #6

              #1 should work (its kinda heavy-handed, but...)
              #2-#3 event filters are of course possible
              #4 based on QS60Style code foreground color is not used (that's QPalette::WindowText), but QPalette::Text is. Wanna check that one?

              How about #5 - report the issue to bugreports.qt.nokia.com and lets find a fix for it.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                razvanpetru
                wrote on last edited by
                #7

                Ok, I'll go with #5 :)

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Fuzzbender
                  wrote on last edited by
                  #8

                  Did you report it? If you did, please share a link here.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    razvanpetru
                    wrote on last edited by
                    #9

                    Hi, I just opened a suggestion at http://bugreports.qt.nokia.com/browse/QTBUG-16027

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      Fuzzbender
                      wrote on last edited by
                      #10

                      Okay, thanks for the report. :)

                      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