Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to enable focus effect (as in QLineEdit) for QAbstractScrollArea subclasses?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 442 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 Extensions
    • Unsolved