### TextArea Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-textarea.html An example demonstrating how to use the TextArea component in QML. ```APIDOC ## TextArea Example ### Description This example shows a basic configuration of the TextArea component. ### Code ```qml TextArea { name: "rCode" title: qsTr("R Script") textType: JASP.TextTypeSource showLineNumber: true } ``` ``` -------------------------------- ### FileSelector Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-fileselector.html An example demonstrating how to use the FileSelector QML type. ```APIDOC ## FileSelector Example ```qml FileSelector { name: "outputFile" save: true filter: "*.csv" } ``` ``` -------------------------------- ### Basic Button Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-button.html A simple example of how to create a button with custom text. ```qml Button { text: qsTr("Run Analysis") } ``` -------------------------------- ### Preset Component Example Usage Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/CONTRIBUTING.md Example of how to instantiate a preset QML component, binding its 'name'. ```qml [ComponentName] { name: "myOption" } ``` -------------------------------- ### Basic TextField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-textfield.html A basic example of how to use the TextField component with a label and placeholder text. ```qml TextField { name: "tableTitle" label: qsTr("Table title") placeholderText: qsTr("Enter title...") fieldWidth: 200 } ``` -------------------------------- ### TableView Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-tableview.html An example demonstrating how to use the TableView QML type. ```APIDOC ## TableView Example ### Description Example usage of the TableView QML type. ### Code ```qml TableView { name: "coefficients" modelType: JASP.GridInput initialColumnCount: 3 } ``` ``` -------------------------------- ### FactorsList Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-factorslist.html An example demonstrating how to use the FactorsList QML type. ```APIDOC ## Example ```qml FactorsList { name: "factor1" editableTitle: "Factor 1" dropKeys: "allAvailableVariables" } ``` ``` -------------------------------- ### SQL Server Connection String Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Resources/Help/filemenu/Database.md Use this format for the 'Name' field when connecting to a SQL Server database. Ensure the DRIVER string matches your installed SQL Server Native Client version. ```text DRIVER={SQL Server Native Client 11.0};SERVER=DESKTOP-C7VK7RJ\SQLEXPRESS;DATABASE=TestDB ``` -------------------------------- ### QML Component Example Usage Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/CONTRIBUTING.md Example of how to instantiate and use a QML component, binding its 'name' and setting a 'label'. ```qml [ComponentName] { name: "myOption" label: qsTr("My Label") } ``` -------------------------------- ### Label Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-label.md Example of how to use the Label QML type to display text. ```APIDOC ## Example ```qml Label { text: qsTr("Effect size:") } ``` ``` -------------------------------- ### ModelTermsList Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-modeltermslist.md A basic example demonstrating how to use the ModelTermsList QML component. ```APIDOC ## Example ``` qml ModelTermsList { name: "modelTerms" } ``` ``` -------------------------------- ### BasicThreeButtonTableView Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-basicthreebuttontableview.html An example demonstrating how to use the BasicThreeButtonTableView QML component. ```APIDOC ## Example ```qml BasicThreeButtonTableView { name: "priorCounts" initialColumnCount: 3 initialRowCount: 2 columnNames: [qsTr("Group 1"), qsTr("Group 2"), qsTr("Group 3")] } ``` ``` -------------------------------- ### Install Ubuntu Dependencies Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-build-guide-linux.md Use this command to install essential libraries for building JASP on Ubuntu systems. ```bash sudo apt install libboost-dev libjsoncpp25 libjsoncpp-dev libarchive13 libarchive-dev libxcb-xkb-dev libxcb-xkb1 libxcb-xinerama0 libxcb-cursor0 libxkbcommon-dev libxkbcommon-x11-dev autoconf zlib1g zlib1g-dev cmake gfortran build-essential flex libssl-dev libgl1-mesa-dev libsqlite3-dev r-base libglpk-dev libminizip-dev libfreexl-dev ``` -------------------------------- ### Install Rtools45 Packages and Libraries Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-build-guide-windows.md Run this command within the Rtools45 UCRT64 command prompt to install essential build tools and libraries. It's recommended to run the command twice to ensure all packages are installed. ```bash pacman -Syu mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-boost jsoncpp bison flex make autoconf automake git wget cmake mingw-w64-ucrt-x86_64-libiconv libiconv-devel libtool zlib-devel zlib mingw-w64-ucrt-x86_64-zlib mingw-w64-ucrt-x86_64-jsoncpp ``` -------------------------------- ### DropDown Example Usage Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-dropdown.html Examples demonstrating how to use the DropDown QML type with different configurations, including populating values directly and sourcing from other controls. ```APIDOC ## DropDown Example ```qml Column { DropDown { name: "correlationType" label: qsTr("Correlation coefficient") values: [ { label: qsTr("Pearson"), value: "pearson" }, { label: qsTr("Spearman"), value: "spearman" } ] indexDefaultValue: 0 } DropDown { name: "factor" label: qsTr("Choose factor variable") source: factors // id of the factors VariablesList } } ``` ``` -------------------------------- ### TextArea Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-textarea.md An example demonstrating how to use the TextArea component in QML, setting its name, title, text type for syntax highlighting, and enabling line numbers. ```APIDOC ## Example ``` qml TextArea { name: "rCode" title: qsTr("R Script") textType: JASP.TextTypeSource showLineNumber: true } ``` ``` -------------------------------- ### DoubleField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-doublefield.md An example demonstrating how to use the DoubleField QML type with specific configurations. ```APIDOC ## Example ```qml DoubleField { name: "alpha" label: qsTr("Significance level") defaultValue: 0.05 min: 0 max: 1 decimals: 3 } ``` ``` -------------------------------- ### JagsTableView Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-jagstableview.html An example demonstrating how to use the JagsTableView QML component with custom properties. ```APIDOC ## Example Usage ```qml JagsTableView { name: "dataInput" maxDataEntries: 50 } ``` ``` -------------------------------- ### Install JASP Beta on Linux Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-module-workflow.md Install the latest beta version of JASP from the flathub-beta repository on Linux systems. ```sh flatpak install flathub-beta org.jaspstats.JASP ``` -------------------------------- ### GridLayout Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-gridlayout.html An example demonstrating how to use the GridLayout QML Type with three CheckBox elements and a custom column count. ```APIDOC ## Example ```qml import JASP.Controls 1.0 GridLayout { columns: 3 CheckBox { name: "opt1" label: qsTr("Option 1") } CheckBox { name: "opt2" label: qsTr("Option 2") } CheckBox { name: "opt3" label: qsTr("Option 3") } } ``` ``` -------------------------------- ### Install Qt Libraries on Arch/Manjaro Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-build-guide-linux.md Installs Qt 6 libraries using pacman on Arch Linux or its variants like Manjaro. ```bash pacman -Syu qt6 ``` -------------------------------- ### FactorsList Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-factorslist.html Example demonstrating the basic usage of the FactorsList QML type, including setting its name and editable title, and specifying drop keys. ```qml FactorsList { name: "factor1" editableTitle: "Factor 1" dropKeys: "allAvailableVariables" } ``` -------------------------------- ### FormulaField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-formulafield.html An example demonstrating how to use the FormulaField QML type, including setting its name, label, and default value. ```APIDOC ## FormulaField Example ### Description Example usage of the FormulaField QML component. ### Code ```qml FormulaField { // The user can here type '1/3' or 'sin(10)' name: "priorMean" label: qsTr("Prior mean") defaultValue: "0" } ``` ``` -------------------------------- ### Install jaspSyntax from GitHub Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-syntax-guide.md Use this command to install the jaspSyntax package directly from GitHub. This method automatically downloads the necessary JASP syntaxInterface library. ```R remotes::install_github("jasp-stats/jaspSyntax") ``` -------------------------------- ### Build All Default JASP Modules Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-build-guide-linux.md Use this script to build and install all available JASP modules locally. It clones all modules into a specified directory and then builds and installs them to `jasp-desktop/Modules/local`. ```shell cd jasp-desktop/Tools ./buildAllDefaultJaspModules.sh ``` -------------------------------- ### Define R installation and library paths Source: https://github.com/jasp-stats/jasp-desktop/blob/development/R-Interface/CMakeLists.txt Establishes CMake variables for R home, binary, library, include, and optional directories used during compilation and linking. ```CMake set(R_HOME_PATH "${JASP_BINARY_DIR}/R") set(R_BIN_PATH "${R_HOME_PATH}/bin") set(R_LIB_PATH "${R_HOME_PATH}/bin/${R_DIR_NAME}") set(R_LIBRARY_PATH "${R_HOME_PATH}/library") set(R_OPT_PATH "${R_HOME_PATH}/opt") set(R_EXECUTABLE "${R_HOME_PATH}/bin/R") set(R_INCLUDE_PATH "${R_HOME_PATH}/include") set(RENV_PATH "${JASP_BINARY_DIR}/_cache/R/renv_library/renv") set(R_CPP_INCLUDES_LIBRARY "${JASP_BINARY_DIR}/Modules/Tools/R_cpp_includes_library") ``` -------------------------------- ### Basic Switch Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-switch.html Demonstrates how to create a basic Switch control with a name and a label. ```QML Switch { name: "darkMode" label: qsTr("Dark mode") } ``` -------------------------------- ### AvailableVariablesList Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-availablevariableslist.html Example demonstrating the usage of AvailableVariablesList within a VariablesForm. This setup allows users to drag variables from the available list to assigned lists. ```qml VariablesForm { AvailableVariablesList { name: "allVariables" } AssignedVariablesList { name: "dependent" singleVariable: true } } ``` -------------------------------- ### Windows-specific CMake project initialization Source: https://github.com/jasp-stats/jasp-desktop/blob/development/R-Interface/CMakeLists.txt Configures CMake project for Windows builds with Qt Creator Conan setup disabled, sets minimum CMake version, and defines project metadata including version 11.5.0.0. ```CMake if(WIN32) set(QT_CREATOR_SKIP_CONAN_SETUP ON) cmake_minimum_required(VERSION 3.21) project( R-Interface VERSION 11.5.0.0 LANGUAGES C CXX) list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../Tools/CMake") ``` -------------------------------- ### PercentField Example for Confidence Interval Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-qml-guide.md A basic PercentField setup for confidence interval estimates, including a label. ```qml CIField { name: "estimatesPlotsCI"; label: qsTr("Confidence interval") } ``` -------------------------------- ### Configure JASP Desktop with Custom R Path Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-build-guide-linux.md Example of setting the CUSTOM_R_PATH CMake variable to specify a custom R installation directory. ```cmake set(CUSTOM_R_PATH "/usr/lib64/R") ``` -------------------------------- ### Configure Rtools path based on R version Source: https://github.com/jasp-stats/jasp-desktop/blob/development/R-Interface/CMakeLists.txt Sets the Rtools installation path conditionally based on the R version (4.5.0, 4.4.0, 4.3.0, 4.2.0, or older). Raises a fatal error if R version is older than 4.2.0. ```CMake if(${R_VERSION} VERSION_GREATER_EQUAL "4.5.0") set(RTOOLS_PATH "C:/rtools45/ucrt64" CACHE PATH "Path to Rtools45 ucrt64 folder") elseif(${R_VERSION} VERSION_GREATER_EQUAL "4.4.0") set(RTOOLS_PATH "C:/rtools44/ucrt64" CACHE PATH "Path to Rtools44 ucrt64 folder") elseif(${R_VERSION} VERSION_GREATER_EQUAL "4.3.0") set(RTOOLS_PATH "C:/rtools43/ucrt64" CACHE PATH "Path to Rtools43 ucrt64 folder") elseif(${R_VERSION} VERSION_GREATER_EQUAL "4.2.0") set(RTOOLS_PATH "C:/rtools42/ucrt64" CACHE PATH "Path to Rtools42 ucrt64 folder") else() message( FATAL_ERROR "Please use a supported R-version. If you're building JASP with a version of R older than 4.2.0 then adjust the RTOOLS_PATH in the CMake code above this error.") endif() ``` -------------------------------- ### Install devtools Package Source: https://github.com/jasp-stats/jasp-desktop/wiki/R-package-list Installs the 'devtools' package from a specified CRAN mirror. This package is often a prerequisite for installing packages from GitHub. ```R install.packages("devtools",repos="http://cran.us.r-project.org",dep=TRUE) ``` -------------------------------- ### Basic TabView Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-tabview.html Demonstrates a basic TabView with a name, title, default new tab name, and a content component. ```qml TabView { name: "models" title: qsTr("Models") newTabName: qsTr("Model 1") content: VariablesList { name: "predictors"; title: qsTr("Predictors") } } ``` -------------------------------- ### Install Missing KDE SDK Runtime Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-module-workflow.md Fix for 'runtime/org.kde.Sdk/x86_64/6.7 not installed' error by manually installing the specified KDE SDK runtime. ```sh flatpak install org.kde.Sdk ``` -------------------------------- ### Install Homebrew Packages on macOS Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-build-guide-macos.md After installing Homebrew, run this command to install essential development tools and libraries required for building JASP. ```bash brew install conan cmake bison flex pkg-config automake autoconf create-dmg parallel ninja ``` -------------------------------- ### Basic InputListView Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-inputlistview.html Demonstrates how to use the InputListView component with basic properties like name, title, and defaultValues. ```qml InputListView { name: "customValues" title: qsTr("Values") defaultValues: ["0.5", "1.0", "1.5"] } ``` -------------------------------- ### Install Homebrew on macOS Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/development/jasp-build-guide-macos.md Use this command to install Homebrew, the package manager for macOS. It may prompt for Xcode Command Line Tools installation. ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` -------------------------------- ### Basic FactorsForm Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-factorsform.html Demonstrates the basic instantiation of a FactorsForm with custom properties. ```qml FactorsForm { name: "factors" initNumberFactors: 2 allowedColumns: ["scale"] } ``` -------------------------------- ### Install Package from GitHub Source: https://github.com/jasp-stats/jasp-desktop/wiki/R-package-list Installs a package directly from a GitHub repository using the 'devtools' package. This is useful for installing development versions or packages not yet on CRAN. ```R devtools::install_github("SachaEpskamp/bootnet") ``` -------------------------------- ### TextField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-textfield.html Example usage of the TextField QML type. ```APIDOC ## Example ```qml TextField { name: "tableTitle" label: qsTr("Table title") placeholderText: qsTr("Enter title...") fieldWidth: 200 } ``` ``` -------------------------------- ### Create and Populate SQLite Table Source: https://github.com/jasp-stats/jasp-desktop/blob/development/Resources/Help/filemenu/Database.md This example demonstrates creating a table named 'helloWorld' with two columns and inserting four rows of data into it using the SQLite command-line interface. This is a prerequisite for loading data into JASP from an SQLite database. ```bash cd somewhere/nice sqlite3 helloWorld # SQLite version 3.36.0 2021-06-18 18:58:49 # Enter ".help" for usage hints. # sqlite> create table helloWorld ( aNumber int, aString varchar(30) ); insert into helloWorld values ( 1, "I"), (2, "am"), (3, "alive"), (4, ";"); # check it worked: select * from helloWorld; # 1|I # 2|am # 3|alive # 4|;) ``` -------------------------------- ### IntegerField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-integerfield.md An example demonstrating how to use the IntegerField in a QML component. ```APIDOC ``` qml IntegerField { name: "sampleSize" label: qsTr("Sample size") defaultValue: 100 min: 1 } ``` ``` -------------------------------- ### SimpleTableView Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-simpletableview.html Instantiate a SimpleTableView with a specified name and initial dimensions. ```qml SimpleTableView { name: "priorMatrix" initialColumnCount: 3 initialRowCount: 3 } ``` -------------------------------- ### Basic JAGSTextArea Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-jagstextarea.html Demonstrates how to instantiate and configure a JAGSTextArea with a name and label. ```qml JAGSTextArea { name: "model" label: qsTr("JAGS Model") } ``` -------------------------------- ### Basic TableView Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-tableview.md Demonstrates a basic TableView with a specified name, model type, and initial column count. Ensure JASP.Controls 1.0 is imported. ```qml import JASP.Controls 1.0 TableView { name: "coefficients" modelType: JASP.GridInput initialColumnCount: 3 } ``` -------------------------------- ### Basic Slider Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-slider.html Demonstrates how to create a Slider with a custom label, value, minimum, and maximum. ```qml Slider { name: "prior" label: qsTr("Prior width") value: 0.707 min: 0 max: 2 } ``` -------------------------------- ### Basic ContrastsList Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-contrastslist.html Instantiate a ContrastsList component, specifying the source control for factor variables. ```qml ContrastsList { factorsSourceName: "fixedFactors" } ``` -------------------------------- ### AssignedRepeatedMeasuresCells Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-assignedrepeatedmeasurescells.html Example of how to instantiate and configure an AssignedRepeatedMeasuresCells component in QML. ```qml AssignedRepeatedMeasuresCells { name: "repeatedMeasuresCells" title: qsTr("Repeated Measures Cells") } ``` -------------------------------- ### Basic GridLayout Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-gridlayout.html Demonstrates a basic GridLayout with 3 columns and CheckBox items. The number of columns can be adjusted. ```qml GridLayout { columns: 3 CheckBox { name: "opt1" label: qsTr("Option 1") } CheckBox { name: "opt2" label: qsTr("Option 2") } CheckBox { name: "opt3" label: qsTr("Option 3") } } ``` -------------------------------- ### VariablesList Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-variableslist.md Example usage of the VariablesList QML type in a QML Column layout. ```APIDOC ## Example ``` qml Column { VariablesList { name: "dependent" title: qsTr("Dependent Variable") singleVariable: true allowedColumns: ["scale"] } VariablesList { name: "modelTerms" title: qsTr("Model Terms") listViewType: JASP.Interaction rowComponent: CheckBox { name: "isNuisance" } } } ``` ``` -------------------------------- ### DropDown QML Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-dropdown.md Demonstrates how to use the DropDown control with predefined values and by sourcing from another control. Ensure JASP.Controls 1.0 is imported. ```qml Column { DropDown { name: "correlationType" label: qsTr("Correlation coefficient") values: [ { label: qsTr("Pearson"), value: "pearson" }, { label: qsTr("Spearman"), value: "spearman" } ] indexDefaultValue: 0 } DropDown { name: "factor" label: qsTr("Choose factor variable") source: factors // id of the factors VariablesList } } ``` -------------------------------- ### DoubleField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-doublefield.html An example demonstrating the usage of the DoubleField QML type with common properties. ```APIDOC ## Example ```qml [DoubleField](qml-jasp-controls-doublefield.html) { name: "alpha" label: qsTr("Significance level") defaultValue: 0.05 min: 0 max: 1 decimals: 3 } ``` ``` -------------------------------- ### Initial Git Remote Setup (OS X) Source: https://github.com/jasp-stats/jasp-desktop/wiki/Rebasing-your-repo Run these commands only the first time you rebase on OS X to add the upstream repository and switch to the development branch. ```bash git remote add upstream https://github.com/jasp-stats/jasp-desktop.git git checkout development ``` -------------------------------- ### Generate HTML Documentation with QDoc Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/README.md Run qdoc from the jasp-desktop root directory to generate HTML documentation. Ensure qdoc is in your system PATH. ```powershell # From c:\JASP-Packages\jasp-desktop qdoc QMLComponents/doc/jasp_qml.qdocconf ``` -------------------------------- ### ComputedColumnField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-computedcolumnfield.html Example of how to use the ComputedColumnField in QML to define a computed column name. ```qml ComputedColumnField { name: "generatedColumn" label: qsTr("Column name") } ``` -------------------------------- ### Basic ColumnLayout Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-columnlayout.md Demonstrates how to use ColumnLayout to arrange CheckBox items vertically. Ensure JASP.Controls 1.0 is imported. ```qml ColumnLayout { CheckBox { name: "option1"; label: qsTr("Option 1") } CheckBox { name: "option2"; label: qsTr("Option 2") } } ``` -------------------------------- ### CIField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/md_out/qml-jasp-controls-cifield.md An example demonstrating how to use the CIField QML type within a CheckBox component. ```APIDOC ## Example ``` qml CheckBox { name: "includeCI" label: qsTr("Confidence interval") CIField { name: "ciWidth" } } ``` ``` -------------------------------- ### Basic IntegerField Example Source: https://github.com/jasp-stats/jasp-desktop/blob/development/QMLComponents/doc/html_out/qml-jasp-controls-integerfield.html Demonstrates a basic IntegerField with a label and a minimum value constraint. ```qml IntegerField { name: "sampleSize" label: qsTr("Sample size") defaultValue: 100 min: 1 } ```