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 default antialising to all QPixmap?
Forum Updated to NodeBB v4.3 + New Features

How to default antialising to all QPixmap?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 329 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.
  • S Offline
    S Offline
    SRuan
    wrote on last edited by
    #1

    How i could make all QPixmaps be drawn with antialiasing in the entire qapplication?

    I mean the pixmaps drawn with stylesheets like

    border-image: 
    image:
    

    If there's no such flag or option if someone could help me find where in the qpainter.cpp source I could default the entire app to use the antialiasing rendering?

    Christian EhrlicherC 1 Reply Last reply
    0
    • S SRuan

      How i could make all QPixmaps be drawn with antialiasing in the entire qapplication?

      I mean the pixmaps drawn with stylesheets like

      border-image: 
      image:
      

      If there's no such flag or option if someone could help me find where in the qpainter.cpp source I could default the entire app to use the antialiasing rendering?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Can you tell us your exact problem with a minimal, compilable example? What exactly is wrong - are the pixmaps painted blurry on high-dpi screens?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Can you tell us your exact problem with a minimal, compilable example? What exactly is wrong - are the pixmaps painted blurry on high-dpi screens?

        S Offline
        S Offline
        SRuan
        wrote on last edited by SRuan
        #3

        @Christian-Ehrlicher

        when the pixmaps are drawn with border-radius: their borders are jagged, while with antialiasing they don't.

        Is there any reason to qt doesn't use anti-aliasing on images by default?

        Christian EhrlicherC 1 Reply Last reply
        1
        • S SRuan

          @Christian-Ehrlicher

          when the pixmaps are drawn with border-radius: their borders are jagged, while with antialiasing they don't.

          Is there any reason to qt doesn't use anti-aliasing on images by default?

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @SRuan You still did not provide a minimal, compilable example with some description on how to produce the issue.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          S 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @SRuan You still did not provide a minimal, compilable example with some description on how to produce the issue.

            S Offline
            S Offline
            SRuan
            wrote on last edited by
            #5

            @Christian-Ehrlicher

            QWidget
            {
            	border-image: url("C:/Users/Ruan/home.png");
            	border-radius: 12px;
            }
            

            the image borders are jagged, while with antialiasing they don't.

            how do i default all paint events to use anti aliasing?

            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