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. QGLWidget does strange drawings
Forum Updated to NodeBB v4.3 + New Features

QGLWidget does strange drawings

Scheduled Pinned Locked Moved General and Desktop
11 Posts 3 Posters 6.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
    AquilaRapax
    wrote on last edited by
    #1

    Hi everyone,

    i'd like to use OpenGL in a project. So, to get a starting point, i tried the 2DPainting example, playing a litte around. One of the first things i did, was switching antialiasing on and off, getting a strange effect. As you can see on the no-antialized picture, the circle-corners are some kind of, well, false-drawn.

    !http://b.imagehost.org/0273/noAntialiasing.png(no antialiasing)!

    When i turn on antialiasing, the circles don't have those weird corners, but aren't as round and smooth as in native mode.

    !http://d.imagehost.org/0655/antialiasing.png(antialized)!

    So now, i'm not sure, if i still should use opengl. Sure, i could (and probably would) turn on antialiasing, but i wonder, why the quality is worse compared to the native mode... Or did anyone have a suggestion if i forgot something. I had the idea, that maybe double-buffering could solve the problem!?

    AquilaRapax

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

      Sounds like a graphics driver issue. Do you have the most recent graphics driver for your system installed?

      Nokia Certified Qt Specialist.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AquilaRapax
        wrote on last edited by
        #3

        Yes i do... Updated just a week ago to the newest driver available.

        But good remark, i didn't tell my system configuration. I'm working on Win7 Prof., with an Geforce 8800GTS. Maybe it could be a problem with nvidia-cards, because i tested the program on my notebook, with Win7, equipped with a nvidia 9650M GT, and had the same problem. But i think, other people would have reported the same issue.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          baysmith
          wrote on last edited by
          #4

          I don't have a system with a similar config. Perhaps someone else here has a similar system and can take a closer look at it for you. However, like you said, I think it would have been seen and reported by now. For the record, can you also report your Qt version?

          Nokia Certified Qt Specialist.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AquilaRapax
            wrote on last edited by
            #5

            Sure. I'm using Qt v. 4.7.1 for Windows (VS 2008). It would be nice, if someone could do this. :)
            Thanks in advance...

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              you can run benchmark and check how your driver/gpu card is doing with this free s/w "here":http://www.ozone3d.net/benchmarks/fur/

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AquilaRapax
                wrote on last edited by
                #7

                Hi chetankjain,

                i did the benchmark, but everything seemed to be normal. the score was nearly the score of equal graphic cards. The only thing that differed from, was my gpu-temperature, which was a bit high (~90-100°C, while the others had a temperature around 70°C).

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AquilaRapax
                  wrote on last edited by
                  #8

                  I tested it on several pcs (unfortunately all equipped with nvidia cards, so i could not compare results on ati) - all produced the same output. I reported it to the Qt bug tracker.
                  For those who are interested: http://bugreports.qt.nokia.com/browse/QTBUG-16043

                  1 Reply Last reply
                  0
                  • ? This user is from outside of this forum
                    ? This user is from outside of this forum
                    Guest
                    wrote on last edited by
                    #9

                    yes I tried on 2 different systems, and can reproduce the issue... seems like a bug

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      przemo_li
                      wrote on last edited by
                      #10

                      bug or not bad programming technique

                      BTW how antialiasing is done in this example?

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        AquilaRapax
                        wrote on last edited by
                        #11

                        hm, i don't think that this occures because of bad programming. I just used the 2D painting example that comes with Qt. I just added a few buttons to enable/disable antialiasing dynamically. Antialiasing is done by calling the QPainter::setRenderHint method with the arguments QPinter::Antialiasing and QPainter::HighQualityAntialiasing.

                        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