Qt 3 Support Members for QSqlIndexОписанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде. Открытые функции
Описание функций-членовQString QSqlIndex::toString ( const QString & prefix = QString(), const QString & sep = QLatin1String( "," ), bool verbose = true ) constReturns a comma-separated list of all the index's field names as a string. This string is suitable, for example, for generating a SQL SELECT statement. Only generated fields are included in the list (see isGenerated()). If a prefix is specified, e.g. a table name, it is prepended before all field names in the form: "prefix.<fieldname>" If sep is specified, each field is separated by sep. If verbose is true (the default), each field contains a suffix indicating an ASCending or DESCending sort order. QStringList QSqlIndex::toStringList ( const QString & prefix = QString(), bool verbose = true ) constReturns a list of all the index's field names. Only generated fields are included in the list (see isGenerated()). If a prefix is specified, e.g. a table name, all fields are prefixed in the form: "prefix.<fieldname>" If verbose is true (the default), each field contains a suffix indicating an ASCending or DESCending sort order. Note that if you want to iterate over the list, you should iterate over a copy, e.g. QStringList list = myIndex.toStringList(); QStringList::Iterator it = list.begin(); while(it != list.end()) { myProcessing(*it); ++it; }
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |