Could you check if this works on your system?
#include <QApplication>
#include <QMessageBox>
#include <QWidget>
#include <QTimer>
{
Q_OBJECT
public slots:
void test()
{
}
};
int main( int argc, char **argv )
{
app.setStyleSheet( "QPushButton { max-height: 8px; } " );
Test t;
t.show();
QTimer::singleShot( 1000,
&t,
SLOT(test
()) );
return app.exec();
}
#include "main.moc"
#include <QApplication>
#include <QMessageBox>
#include <QWidget>
#include <QTimer>
class Test : public QWidget
{
Q_OBJECT
public slots:
void test()
{
QMessageBox::warning( this, tr("My App"), tr("Please select files to copy."), QMessageBox::Ok);
}
};
int main( int argc, char **argv )
{
QApplication app( argc, argv );
app.setStyleSheet( "QPushButton { max-height: 8px; } " );
Test t;
t.show();
QTimer::singleShot( 1000, &t, SLOT(test()) );
return app.exec();
}
#include "main.moc"
To copy to clipboard, switch view to plain text mode
Bookmarks