Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problems with rowCount()

Problems with rowCount()

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 308 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.
  • Ghost_of_MagellanG Offline
    Ghost_of_MagellanG Offline
    Ghost_of_Magellan
    wrote on last edited by
    #1

    I think that at this point it's obvious I'm not the sharpest tool in the shed at javascript or QtDesigner.

    I am using javascript to make a script for QCad (Designer and drafting program)

    Well, I built a table widget and filled it with a temporary array, whose dimentions are known to me.
    functions widgets["Obj_table"].insertRow(i); and widgets["Obj_table"].removeRow(entityIds.length-i-1); work perfectly.

    Now I need to work with the contents of the table itself for which I need the rowcount. Browsing the library on your site I know that I am supposed to acquire it through: int QTableWidget::rowCount() const, and I'm assuming the javascript equivalent is something like var linestotal = widgets["Obj_table"].rowCount();
    Unfortunately, using this code blocks my application, meaning there is a pobable code error here.

    I would appreciate corrections in any mistake I'm doing.

    Thank you very much.

    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