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 Anti-Aliasing on all widgets ?
Forum Updated to NodeBB v4.3 + New Features

How to Enable Anti-Aliasing on all widgets ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.2k 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.
  • A Offline
    A Offline
    andamedanda
    wrote on last edited by
    #1

    As the title says how do u enable anti aliasing across the application on all widgets.
    My problem is that i have a Gradient background set to a widget Using a Style Sheet. It looks fine when i use graphicssystem opengl. But ugly when i use native.
    Is there any way to enable anti aliasing on all widgets OR atleast that specific widget alone without overriding the paintEvent() .

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bodzio131
      wrote on last edited by
      #2

      First thought: set your own QStyle bridge-wrapper, which will pass all calls into original QStyle (got from QApplication::style()), except it will change QPainter RenderHint into Antialiasing|TextAntialiasing for all drawing calls. Not subtle but should work globally.

      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