http://api.kde.org/4.5-api/kdepimlibs-apidocs/kldap/html/annotated.html
kldap
http://www.userbooster.de/en/download/openldap-for-windows.aspx
https://laas.mine.nu/uclibc/openldap-2.1.30/libraries/libldap_r/
kldap
http://www.userbooster.de/en/download/openldap-for-windows.aspx
https://laas.mine.nu/uclibc/openldap-2.1.30/libraries/libldap_r/
For my Qt project, I use this scheme in *.pro file:
HEADERS += src/dialogs.h
SOURCES += src/main.cpp \
src/dialogs.cpp
Release:DESTDIR = release
Release:OBJECTS_DIR = release/.obj
Release:MOC_DIR = release/.moc
Release:RCC_DIR = release/.rcc
Release:UI_DIR = release/.ui
Debug:DESTDIR = debug
Debug:OBJECTS_DIR = debug/.obj
Debug:MOC_DIR = debug/.moc
Debug:RCC_DIR = debug/.rcc
Debug:UI_DIR = debug/.ui
It`s simple, but nice! :)
{
QApplication app( argc, argv );
QListView list;
QStringListModel model;
QStringList strings;
strings << "foo" << "bar" << "baz";
model.setStringList( strings );
list.setModel( &model );
QModelIndex index =model.index(1);
list.selectionModel()->select(index, QItemSelectionModel::Select);
list.show();
return app.exec();
}
cd c:\Qt\2010.02.1\qt\
configure.exe -debug-and-release -confirm-license ^
-plugin-sql-sqlite -plugin-sql-mysql -plugin-sql-odbc -qt-libpng -qt-libjpeg -openssl ^
-opensource -no-incredibuild-xge -dont-process -no-qmake
cd c:\Qt\2010.02.1\qt\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=c:/Qt/MySql/include" "LIBS+=c:/Qt/MySql/lib/opt/libmysql.lib" mysql.pro
mingw32-make
In this example, we display the contents of a model using two different views, and share the user's selection between them. We will use the QDirModel supplied with Qt because it requires very little configuration, and provides existing data to the views.
The main() function for this example demonstrates all the principles involved in setting up a model and two views. We also share the selection between the two views:
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplitter *splitter = new QSplitter;
QDirModel *model = new QDirModel;
QTreeView *tree = new QTreeView(splitter);
tree->setModel(model);
tree->setRootIndex(model->index(QDir::currentPath()));
QListView *list = new QListView(splitter);
list->setModel(model);
list->setRootIndex(model->index(QDir::currentPath()));
QItemSelectionModel *selection = new QItemSelectionModel(model);
tree->setSelectionModel(selection);
list->setSelectionModel(selection);
splitter->setWindowTitle("Two views onto the same directory model");
splitter->show();
return app.exec();
}
source
//pushButton->setGeometry(QRect(310, 20, 75, 23));
QPushButton *button = new QPushButton(this);
button->setText("Hello");
button->setGeometry(QRect(31, 31, 31, 31));
this->ui->pushButton->setEnabled(false);
QObject::connect(button, SIGNAL(clicked()), this, SLOT(View_MSG()));
//button.parent(this->ui->DialogXX);
button->show();
return;
setlocale( LC_ALL, ".1251" );
#endif
#include "QtCore"
#include "QHash"
#include "QFile"
#include "QDataStream"
#define PATH "./file.dat"
int main()
{
//create a dictionary
QHashQString,QString> dict;
dict["project.owner"] = "owner";
dict["project.version"] = "0.10.0";
QFile file(PATH);
file.open(QIODevice::WriteOnly);
QDataStream out(&file); // write the data
out dict;
file.close();
//setting new a value
dict["project.owner"] = "new";
//update the dictionary
file.open(QIODevice::ReadOnly);
QDataStream in(&file); // read the data serialized from the file
in >> dict;
qDebug() "value: " dict.value("project.owner");
return 0;
}