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 Quick Test when using QQmlFileSelector
Forum Updated to NodeBB v4.3 + New Features

Qt Quick Test when using QQmlFileSelector

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 502 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.
  • B Offline
    B Offline
    buggex
    wrote on last edited by
    #1

    Is there some way to use fileselectors for qml files while also using Qt Quick Test?

    I have a qml code base that uses QQmlFileSecltor and I would like to apply a specific file selectors when running different tests.

    The problem I have is that the QQucikView is create by Qt with
    QUICK_TEST_MAIN()
    so I do not have access to the qml engine to apply a QQmlFileSelector.

    GrecKoG 1 Reply Last reply
    0
    • B buggex

      Is there some way to use fileselectors for qml files while also using Qt Quick Test?

      I have a qml code base that uses QQmlFileSecltor and I would like to apply a specific file selectors when running different tests.

      The problem I have is that the QQucikView is create by Qt with
      QUICK_TEST_MAIN()
      so I do not have access to the qml engine to apply a QQmlFileSelector.

      GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      @buggex You could run your tests with custom selectors in the QT_FILE_SELECTORS environment variable : http://doc.qt.io/qt-5/qfileselector.html#adding-selectors

      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