Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt5 Custom GeometryExample with beziercurve and QSGGeometry::setLineWidth
QtWS25 Last Chance

Qt5 Custom GeometryExample with beziercurve and QSGGeometry::setLineWidth

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 2.1k 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.
  • Y Offline
    Y Offline
    yanner
    wrote on last edited by
    #1

    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
    0
    • Y Offline
      Y Offline
      yanner
      wrote on last edited by
      #2

      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
      0
      • Q Offline
        Q Offline
        qttester5
        wrote on last edited by
        #3

        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
        0
        • C Offline
          C Offline
          CGomes
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maksim1979
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved