Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. setdata
    Log in to post

    • SOLVED Confusion about inserting new data into QTableModel
      General and Desktop • qtableview qtablemodel setdata • • lansing  

      4
      0
      Votes
      4
      Posts
      383
      Views

      @VRonin Thanks, a written example is a lot easier to understand. I was going through the Qt documentation over and over and couldn't find an good example for this.
    • SOLVED CubeMap setData(…,&QImage) cause atio6axx.dll exception only under Windows
      Game Development • windows 10 qimage setdata cube map • • Artorias  

      10
      0
      Votes
      10
      Posts
      4134
      Views

      Haaaaaa… I missed that… You didn't pass the pointer to the QImage data...
    • SOLVED Speed up multiple setData() calls in model
      General and Desktop • model-view qtconcurrent setdata • • panosk  

      12
      0
      Votes
      12
      Posts
      3833
      Views

      @mjsurette That did the trick! I also removed the dataChanged() calls and now the operation executes instantly even with thousands of rows. It also seems there aren't any side effects, apart that I have to call again fetchMore() immediately after select(). I can now move on and implement some other batch operations like this without worrying about speed. Thank you!
    • Qtablewidget set Focus to a row and select the value?
      General and Desktop • linux qtablewidget qt4 selection setdata • • Adrianos  

      2
      0
      Votes
      2
      Posts
      6120
      Views

      @Adrianos How about using setSelected ? Since you already have the QTableWidgetItem .
    • Stored Type Question QStandardItemModel & QStandardItem
      General and Desktop • qstandarditemmo qstandarditem setdata settext • • MaestroMaus  

      4
      0
      Votes
      4
      Posts
      1101
      Views

      @MaestroMaus Nevermind; found it. Qt has a custom way of downcasting QVariant subclasses. I can just ask the type via a standard method.