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. Please need help: Tableview withs Columns delegate items COMBOBOX
Forum Updated to NodeBB v4.3 + New Features

Please need help: Tableview withs Columns delegate items COMBOBOX

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 460 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.
  • E Offline
    E Offline
    ENSAO_CHEIKH
    wrote on last edited by aha_1980
    #1

    Hi,everyone,please, I have a tableview with deferent TableViewColum that contains items such as combobox labels and buttons , I want to get access to the property of each item like the currentindex of combobox and the text in labels haow to it foim c++?
    Capture.PNG

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ENSAO_CHEIKH
      wrote on last edited by
      #2

      Pleaaaaaaaaaaaaaaaaaaaaaase neeeed help? anyone here can help me

      B 1 Reply Last reply
      0
      • E ENSAO_CHEIKH

        Pleaaaaaaaaaaaaaaaaaaaaaase neeeed help? anyone here can help me

        B Offline
        B Offline
        Bob64
        wrote on last edited by
        #3

        @ENSAO_CHEIKH It's difficult because you haven't given us much information about what you have already done and what exactly you are trying to achieve.

        What sort of model are you populating your table view from? I guess it's not a C++ model because I don't think you would be asking this question if it were. But I could be wrong.

        All I can suggest is that if you do not already have a C++ model it might make sense to start using one.

        E 1 Reply Last reply
        0
        • B Bob64

          @ENSAO_CHEIKH It's difficult because you haven't given us much information about what you have already done and what exactly you are trying to achieve.

          What sort of model are you populating your table view from? I guess it's not a C++ model because I don't think you would be asking this question if it were. But I could be wrong.

          All I can suggest is that if you do not already have a C++ model it might make sense to start using one.

          E Offline
          E Offline
          ENSAO_CHEIKH
          wrote on last edited by
          #4

          Hi, @Bob64 , so my project is about filling a tableVIEW created from QML this one contains in colomuns : 1 button ,3 combobox , chexbox and labels, so the problem that i found is how get access to all these items in the tableview so that i can change their values and properties like the model of th combobox or the checked of checkbox ......, I tried to use objectname but it doesn't work, so how to this? neeeed help please

          B 1 Reply Last reply
          0
          • E ENSAO_CHEIKH

            Hi, @Bob64 , so my project is about filling a tableVIEW created from QML this one contains in colomuns : 1 button ,3 combobox , chexbox and labels, so the problem that i found is how get access to all these items in the tableview so that i can change their values and properties like the model of th combobox or the checked of checkbox ......, I tried to use objectname but it doesn't work, so how to this? neeeed help please

            B Offline
            B Offline
            Bob64
            wrote on last edited by
            #5

            @ENSAO_CHEIKH ok, so if I have understood, your model is in QML - maybe a TableModel? In general I believe that trying to access and manipulate QML objects from C++ is discouraged. For your particular case, it still seems to me that moving your model to your C++ backend (see QAbstractItemModel) might be the best approach. I'm afraid I have never tried to access a QML model from C++ so I am sorry I cannot help with that.

            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