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. Qt QuickTest and native dialogs

Qt QuickTest and native dialogs

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qtquicktestnative dialogsimulatebuttonclick
1 Posts 1 Posters 362 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.
  • O Offline
    O Offline
    Oliver Starke CEOS
    wrote on 6 Apr 2020, 14:21 last edited by Oliver Starke CEOS 4 Jun 2020, 15:31
    #1

    I am using QtQuickTest to test our qml views. There is a use case where the application workflow differs depending on which button has been pressed inside a native file selection dialog ( Qml Item FileDialog). Since I have no access (using findchild,etc) to the buttons inside of the dialog I cannot handle this use case accordingly. If somebody had the same issue I would be curious to know how he has solved it. Implementation of custom qml file dialog will be too much effort, i think.

        function test_createNewProject_UnsavedProjectData_UndefinedFilename() {
            // set flag for unsaved project changes
            applicationController.simProject.hasUnsavedProjectData = true
    
            pressCreateNewProjectAndSaveChanges();
    
            // because of missing project filename there must be a file dialog
            // for path and filename defintion
            var fileSaveDialog = findChild(welcomPage, "fileSaveDlg")
            verify(fileSaveDialog)
    
            *here I would like simulate a mouse click on the ok or cancel button....*
    
        }
    
    1 Reply Last reply
    0

    1/1

    6 Apr 2020, 14:21

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved