Дневник
« 1 2 3 4 5 6 7 ... 12 13 »
setWindowFlags (Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint |
...
Читать дальше »
Просмотров: 1068 |
Добавил: qt-boy |
Дата: 26.08.2010
|
|
env = QProcess::systemEnvironment();//Получили переменные среды
Просмотров: 1850 |
Добавил: qt-boy |
Дата: 26.08.2010
|
|
QString MainWindow ::encodeBase64 ( QString xml )
{
QByteArray text;
text.append(xml
...
Читать дальше »
Просмотров: 3586 |
Добавил: qt-boy |
Дата: 26.08.2010
|
|
QStringList lstDirs = dr .entryList (QDir::Dirs |
QDir::AllDirs |
QDir
...
Читать дальше »
Просмотров: 3650 |
Добавил: qt-boy |
Дата: 26.08.2010
|
|
#include <QDir>
#include <iostream>
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
QDir dir;
dir.setFilter(QDir::Files | QD
...
Читать дальше »
Просмотров: 2845 |
Добавил: qt-boy |
Дата: 22.08.2010
|
|
#include <QStringList>
#include <QDebug>
int main()
{
QStringList names;
names << "Alexandr" << "Zub" << "Alexandrovich";
foreach(QString name, names)
...
Читать дальше »
Просмотров: 1785 |
Добавил: qt-boy |
Дата: 22.08.2010
|
|
QString fileName = "test.rar"; QFile *file; file = new QFile(fileName); if (!file->open(QIODevice::WriteOnly)) { QMessageBox::information(this, tr("FTP"), tr("Unable to save the file %1: %2.") .arg(fileName).arg(file->errorString())); delete file; return; } ftp->get(filename, file);
Просмотров: 1556 |
Добавил: qt-boy |
Дата: 22.08.2010
|
|
//По возрастранию void MainWindow::sortAscending() {
listWidget->sortItems(Qt::AscendingOrder);
} //По убыванию void MainWindow::sortDescending() {
listWidget->sortItems(Qt::DescendingOrder);
}
Просмотров: 2396 |
Добавил: qt-boy |
Дата: 22.08.2010
|
|
void MainWindow::removeItem() { listWidget->takeItem(listWidget->row(listWidget->currentItem())); }
Просмотров: 1492 |
Добавил: qt-boy |
Дата: 22.08.2010
|
|
QRegExp rx( "^[0-9]*[.]{1}[0-9]*$" ); QValidator *validator = new QRegExpValidator(rx, this); ui->lineEdit_2->setValidator( validator );
Просмотров: 11005 |
Добавил: qt-boy |
Дата: 22.08.2010
|
|
|
Календарь |
---|
« Май 2024 » | Пн | Вт | Ср | Чт | Пт | Сб | Вс | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
|
Статистика |
---|
Онлайн всего: 1 Гостей: 1 Пользователей: 0 |
|