Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Qt5 Custom GeometryExample with beziercurve and QSGGeometry::setLineWidth

    QML and Qt Quick
    4
    5
    1720
    Loading More Posts
    • 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.
    • Y
      yanner last edited by

      Hi,

      Does somebody know how is the setLineWidth of QSGGeometry supposed work? If I try to change the line width in the custom geometry example it has no effect. It's using GL_LINE_STRIP as drawing mode so it should work? I am using the MSVC2012 32-bit Qt5 libraries I dowloaded from Qt homepage for windows and QtCreator2.7.2.

      1 Reply Last reply Reply Quote 0
      • Y
        yanner last edited by

        This seems to be a problem with the Qt5 libraries I am using. If I switch to Qt5 libraries I built myself for OpenGL (not ANGLE) the lineWidth function starts to work. Also antialiasing doesn't work with the Qt5 I downloaded and things look quite coarse. Does somebody know if there will 32-bit OPENGL based libraries for windows anytime soon?

        1 Reply Last reply Reply Quote 0
        • Q
          qttester5 last edited by

          Did you ever find out what you are looking for? I am using setLineWidth and it is causing other QML elements in my scene to distort, not just the element I am drawing.

          1 Reply Last reply Reply Quote 0
          • C
            CGomes last edited by

            Yah, i have the same problem with setLineWidth...
            Does anyone know a solution?

            1 Reply Last reply Reply Quote 0
            • M
              maksim1979 last edited by

              Looks like it's a bug in qt 5.2
              https://bugreports.qt-project.org/browse/QTBUG-35346?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab

              1 Reply Last reply Reply Quote 0
              • First post
                Last post