Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. bind

    Log in to post
    • All categories
    • F

      Unsolved Problem with glBindTexture
      General and Desktop • qopengl qopengltexture bind opengl • • FrankE

      2
      0
      Votes
      2
      Posts
      719
      Views

      F

      That's becoming even more weird:

      GLFunctions::gl30()->glGenTextures(1, &texHandle);

      returns 2 in texHandle.

      but for using it in the shader it works for a value of 1 in the bindTexture

      GLFunctions::gl30()->glBindTexture(GL_TEXTURE_2D, texHandle-1);

      This is driving me nuts.

    • aha_1980

      Unsolved [Windows] First QUdpSocket::bind blocks for three seconds
      General and Desktop • qudpsock bind blocking • • aha_1980

      23
      0
      Votes
      23
      Posts
      2627
      Views

      L

      @aha_1980 Try this: setProxy(QNetworkProxy::NoProxy)

    • B

      Unsolved Binding expression for nested properties not working
      QML and Qt Quick • qml bind property bindin binding • • BePie

      2
      0
      Votes
      2
      Posts
      755
      Views

      T

      I just ran into this issue myself, and I have a solution. I know this is an old topic, but since this was pretty much the only thing I could find on the internet about this problem, hopefully this can help someone else.

      In order to bind to a property of the nested QtObject props from the of component A, props needs to be a type of component that is known within the scope where it's properties are being accessed.

      To fix the code above, create a new file for the props Component:

      //Props.qml import QtQml 2.0 QtObject { property color mainColor }

      Now update the A component to use the Props component:

      //A.qml import QtQuick 2.0 import QtQml 2.0 Rectangle { property Props props: Props { mainColor: "blue" } color: props.mainColor }

      A few things to note here from my testing:
      If you were to now add a new property to the instance of Props in A.qml above, and try to bind a value to that , it would fail, because in the outside scope, that new property is not a known property of the Props type.
      Similarly, if you were to declare A.props as property QtObject props: Props { ... } then binding to mainColor would fail because mainColor is not a property of QtObject, and props is being exposed as a QtObject (the base class).

      It appears that the property resolution for binding to a nested property is not able to infer additional properties added to an instance of an object, and can only be bound to known properties of the type being exposed.

    • M

      Unsolved Signal emit Issue - Listview is not showing full list
      QML and Qt Quick • listview bind cpp signals emit • • Mathan M

      4
      0
      Votes
      4
      Posts
      1673
      Views

      raven-worx

      @Mathan-M
      as i said when it displays a row, the model is correctly applied, so there must be something wrong with your model implementation.

      @Mathan-M said in Signal emit Issue - Listview is not showing full list:

      Do we have any link/tutorials to follow or how to bind the value from CPP to qml.

      Here you go.

    • M4RZB4Ni

      Solved Bind Qlable to Sqlserver Database
      General and Desktop • bind qlable sqlserver database • • M4RZB4Ni

      3
      0
      Votes
      3
      Posts
      1051
      Views

      mrjj

      hi
      You can use
      http://doc.qt.io/qt-5/qdatawidgetmapper.html

      to insert data to label. It can not be directly tied to a model.

    • G

      Correct usage of QOpenGLxxxx bind() and release()
      General and Desktop • opengl bind release • • garfunkheul

      1
      0
      Votes
      1
      Posts
      561
      Views

      No one has replied

    • K

      Binding more than one time to the same UDP port
      General and Desktop • qudpsocket bind binding • • koahnig

      2
      0
      Votes
      2
      Posts
      1111
      Views

      K

      OK, found that there are two sides for that coin as well.
      I need to check the other side as well as one sees in the mutlicast sender example.

    • K

      QAbtractSocket bind flags
      General and Desktop • qudpsocket bind shareaddress udp • • koahnig

      1
      0
      Votes
      1
      Posts
      792
      Views

      No one has replied