in reply to Re^2: Qt5 and perl
in thread Qt5 and perl
yes, I am noy sure how to instanciate a global QApplication ?use PerlQt5::QtCore; use PerlQt5::QtGui; use PerlQt5::QtWidgets; package MyApp; use base qw(PerlQt5::QtCore::QCoreApplication); package MyPushButton; use base qw(PerlQt5::QtWidgets::QPushButton); package main; my $app = MyApp->new(scalar @ARGV, \@ARGV); $app = PerlQt5::QtWidgets::QApplication->new( 'Hello, World!', undef); # but crash here with error ... QWidget: Cannot create a QWidget witho +ut QApplication my $button = PerlQt5::QtWidgets::QPushButton->new( 'Hello, World!', un +def);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Qt5 and perl
by Anonymous Monk on Dec 05, 2019 at 11:09 UTC | |
by ptizoom (Scribe) on Dec 30, 2019 at 08:17 UTC |