TypePHP\Qt
Guide
Widgets
Advanced
Reference
FAQ
  • English
  • 简体中文
GitHub
Guide
Widgets
Advanced
Reference
FAQ
  • English
  • 简体中文
GitHub
  • Reference

    • Reference
    • CLI
    • API Reference
    • Packaging
    • Platform Support

Reference

PageContents
CLIThe seven qtphp subcommands
APIEvery QtApp / WidgetTree method, the event table, the bridge contract
PackagingArtifact layout on three platforms, the self-check, runtime dependencies
PlatformsThe per-platform capability matrix and tested environments

Quick index

Most-used API

$app->create($options);                    // initialize QApplication
$app->createWindow($title, $options);      // create a window
$app->view($builder);                      // register the view builder
$app->on($id, $type, $handler);            // register an event handler
$app->run();                               // enter the main loop

Reading widget values

$app->text($id);      // string
$app->value($id);     // mixed
$app->checked($id);   // bool

Imperative (not in the widget tree)

$app->setTitle($t);  $app->setMenu($items);  $app->setStatus($segs);
$app->setTray($spec);  $app->setTimer($id, $ms);  $app->resize($w, $h);

Dialogs

$app->alert($text);  $app->confirm($text);  $app->openFile();  $app->saveFile();

Verification

$app->headless(true);  $app->snapshot($path);  $app->lastError();
Edit this page on GitHub
Last updated: 10/6/26, 3:13 AM
Next
CLI