Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Problems with rowCount()

    General and Desktop
    1
    1
    225
    Loading More Posts
    • 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_Magellan
      Ghost_of_Magellan last edited by

      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 Reply Quote 0
      • First post
        Last post