Qt Forum

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

    QTestlib: Testing QTreeView rename action

    General and Desktop
    1
    2
    2822
    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.
    • A
      amanjit last edited by

      Hi,

      I would like to automate the testing of a rename action. I've got one tree with one visible root item automatically set up. Model based on QAbstractItemModel. Renaming already works but I would like to have it tested automatically (I want to check that my underlying Model that is used by my QAbstractItemModel actually changes.

      Can I programmatically invoke an Action?

      1 Reply Last reply Reply Quote 0
      • A
        amanjit last edited by

        I solved this problem by Mocking my Views/Qt stuff via googlemock

        1 Reply Last reply Reply Quote 0
        • First post
          Last post