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. Qt 5 QDial strange behavior
Forum Updated to NodeBB v4.3 + New Features

Qt 5 QDial strange behavior

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

    I'm using the QDial class to create something like a potentiometer.
    I managed to do this by creating a PotWidget with a QGroupBox and a QDial which I then put into a QObject.
    The problem is that the QObject can be rotated to 0° , 90° , 180°, 270° .
    At 90° and 270° you can see it well while at 0° and 180° you can see the low resolution pixelated QDial.
    Greetings
    alt text

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Since a QObject is nothing which paints anything - please show your code.

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

      1 Reply Last reply
      0
      • F Offline
        F Offline
        feri
        wrote on last edited by
        #3

        I'm doing some tests with a code available on the net, it's quite large and can be found on this site:
        link text
        Components using QDial have the problem described above.
        Greetings

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you tell me why you post a link to another forum instead showing us what you're actually doing so we can see what's going wrong?

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

          1 Reply Last reply
          0
          • F Offline
            F Offline
            feri
            wrote on last edited by
            #5

            The linked forum is where I got the sources I'm looking at.
            I wanted to understand why the buttons and dials are displayed pixelated.
            For buttons using stylesheets I managed to fix them but dials not.
            The sources are in the downlosd Sources section.
            Greetings

            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