МВ
Size: a a a
МВ
AS
// mytest.cpp
#include <QtTest/QtTest>
class TestQString: public QObject
{
Q_OBJECT
private slots:
void toUpper() {
}
};
QTEST_MAIN(TestQString)
#include "mytest.moc"
AS
МВ
AS
MyTestObject test1;в итоге получишь желаемое
QTest::qExec(&test1);
jp
#include <QtTest/QtTest>
class TestQString: public QObject
{
Q_OBJECT
private slots:
void toUpper() {
}
};
QTEST_MAIN(TestQString)
#include "mytest.moc"
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}
AS
#include <QtTest/QtTest>
class TestQString: public QObject
{
Q_OBJECT
private slots:
void toUpper() {
}
};
QTEST_MAIN(TestQString)
#include "mytest.moc"
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}
jp
jp
SK