#quiz #examination #teacher

qrate-gui

A GUI examination generator library that generates different quiz sets for all students so that each student may have a different quiz set from the quiz sets of the others

3 releases

Uses new Rust 2024

0.1.2 Feb 24, 2026
0.1.1 Feb 22, 2026
0.1.0 Feb 21, 2026

#567 in GUI

MIT/Apache

53KB
510 lines

qrate-gui: An Iced-based Graphical Interface for Examination Generation

qrate-gui is a high-level Rust crate designed to build graphical applications for effortless examination generation. Built using the Iced UI framework and the robust qrate core engine, this crate provides the necessary components to transform complex randomization logic into an intuitive, modern desktop experience.

Overview

While the qrate crate handles the "brains" of exam generation (shuffling, variety, and logic), qrate-gui provides the "body" and "eyes." It is specifically tailored for developers building with Iced, allowing for smooth, reactive, and cross-platform user interfaces that educators can use with ease.

Background

qrate-gui was born from the need to make the power of the qrate engine available to the wider educational community. By decoupling the graphical interface from the core generation logic, we have created a modular system that is both developer-friendly and end-user accessible.

Purpose

The primary purpose of qrate-gui is to bridge the gap between complex randomization algorithms and the classroom. By utilizing Iced, we ensure that the resulting tools are not only powerful but also aesthetically pleasing and easy to navigate for educators who may not be tech-savvy.

Why qrate-gui with Iced?

The combination of qrate logic and Iced UI enables the development of professional tools where:

  • Modern Visuals: Leverage Iced's declarative, functional API to create sleek, high-performance interfaces inspired by Elm.
  • Visual Management: Teachers can preview question sets, adjust layouts, and manage student rosters before final output.
  • Reactive Configuration: Real-time feedback when adjusting randomization parameters via sliders or input fields.
  • Cross-Platform Accessibility: Easily compile your exam generator for Windows, macOS, Web, or Linux.

Key Features (Powered by qrate & Iced)

Any application built with qrate-gui inherits sophisticated anti-cheating mechanisms with a polished UI:

  • Dynamic Question Selection: Automatically picks different subsets of questions for each student.
  • Positional Randomization: Ensures the same question appears at different indices across papers.
  • Option Shuffling: Permutes multiple-choice answers uniquely for every single exam set.
  • Iced Integration: Pre-defined data structures and messages designed to work seamlessly with Iced's architecture.

Quick Start for Developers

To use qrate-gui in your Iced project, add it to your Cargo.toml:

[dependencies]
qrate-gui = "0.1"   # This crate

Basic Integration Concept

qrate-gui simplifies the connection between your Iced UI and the generation logic. Below is a conceptual example of how to link an Iced message to the engine:

use qrate_gui::ControlTower;

fn main() -> iced::Result
{
    ControlTower::run()
}

Caution: Font Requirements

Since qrate-gui handles PDF generation with specific styling, your application's working directory must contain a ./fonts subdirectory. The following files are required for proper rendering:

  • font-Regular.ttf
  • font-Italic.ttf
  • font-Bold.ttf
  • font-BoldItalic.ttf

Developed through a synergy of Human Intelligence (HI) and Artificial Intelligence (AI). Every line of code reflects both AI-driven efficiency and rigorous human craftsmanship.

Dependencies

~136MB
~2M SLoC