Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to enable focus effect (as in QLineEdit) for QAbstractScrollArea subclasses?
Qt 6.12 LTS is out! See what's new in the release blog

How to enable focus effect (as in QLineEdit) for QAbstractScrollArea subclasses?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 522 Views
  • 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.
  • Stefan ScherfkeS Offline
    Stefan ScherfkeS Offline
    Stefan Scherfke
    wrote on last edited by
    #1

    In Qt5 (and KDE), QAbstractScrollArea subclasses (like QTextEdit or QListWidget) don't highlight their frame when they are focused (unlike, e.g., QTextEdit, which gets a nice blue border when it has the focus):
    focusframe.png
    How can I enable a similar effect for QTextEdit/QListWidget/...?

    I already tried various variantions of frameStyles and I don't think that using setStyleSheet() should be used for such a common problem.?

    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
    • Unsolved