File: %24Main%20File%20Name%24

package info (click to toggle)
monkeystudio 1.9.0.4%2Bgit20161218-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 41,500 kB
  • ctags: 22,118
  • sloc: cpp: 144,671; ansic: 33,969; python: 2,922; makefile: 127; sh: 122; php: 73; cs: 69
file content (21 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
    // loads phpqt module if needed
    if ( !extension_loaded( 'php_qt' ) ) {
        dl( 'php_qt.' . PHP_SHLIB_SUFFIX );
    }

    // create application
    $app = new QApplication( $argc, $argv );
    $app->setApplicationName( "$Project Name$" );
    
    // create test widget
    $widget = new QWidget();
    $widget->setWindowTitle( "$Project Name$" );
    $widget->show();
    
    // connection
    QObject::connect( $app, SIGNAL( 'lastWindowClosed()' ), $app, SLOT( 'quit()' ) );
    
    // execute application
    $app->exec();
?>