A comma-separated list of selectors to pick a project variant.


These options give another way to specify file selectors for the whole project as mentioned in MCU.Config.fileSelector, they will affect all modules included in the main project file. You can use it to reduce the number of qmlproject files by decoupling module files which target a particular project variant from the main project through placing them in selector folders.


//file structure
// main.qml
// ... resource files
// main.qmlproject
// +board1
//      board.qmlproject
//      board_icon.png
//      +v2
//          board.qmlproject
// +board2
//      board.qmlproject
//      board_icon.png

qmlprojectexporter main.qmlproject --selector=board1,v2

// The earlier command will include board1/v2/board.module with only the following lines in \c main.qmlproject
ModuleFiles {
    files: ["board.qmlproject"]


This option was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.