Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QString QVariant::toString ( void   ) const

Returns the variant as a QString if the variant has type() String, Bool, ByteArray, Char, Date, DateTime, Double, Int, LongLong, StringList, Time, UInt, or ULongLong; otherwise returns an empty string.

See also:
canConvert(), convert()

Definition at line 2048 of file qvariant.cpp.

Referenced by ClassWizard::accept(), View::addItems(), QLocale::amText(), QTextCharFormat::anchorName(), QTextCharFormat::anchorNames(), MainWindow::changeIcon(), MainWindow::changeStyle(), MainWindow::checkCurrentStyle(), SpreadSheetDelegate::createEditor(), qdesigner_internal::DesignerEditorFactory::createEditor(), BookmarkDialog::customContextMenuRequested(), BookmarkWidget::customContextMenuRequested(), qdesigner_internal::ObjectInspectorModel::data(), Phonon::ObjectDescriptionModelData::data(), HistoryCompletionModel::data(), QSqlRelationalTableModel::data(), SpreadSheetItem::data(), CustomSqlModel::data(), QLocale::dateFormat(), QLocale::dateTimeFormat(), QLocale::dayName(), QStyledItemDelegate::displayText(), BookmarksToolBar::dropEvent(), AddressWidget::editEntry(), QDBusMessage::errorMessage(), BookmarkDialog::eventFilter(), QIBaseResult::exec(), QODBCResult::exec(), QSQLiteResult::exec(), QDB2Result::exec(), Q3DataTable::fieldToString(), QFileSystemModel::fileName(), Q3DataTable::find(), BookmarkModel::flags(), QSqlDriver::formatValue(), QAbstractItemDelegate::helpEvent(), ModelMenu::hovered(), QMimeData::html(), CodeStylePage::initializePage(), OutputFilesPage::initializePage(), QDefaultResultWidget::itemActivated(), QAbstractItemView::keyPressEvent(), QSortFilterProxyModel::lessThan(), MySortFilterProxyModel::lessThan(), QHelpSearchResultWidget::linkAt(), HelpDialog::locateLink(), QLibraryInfo::location(), HistoryFilterModel::mapFromSource(), QAbstractItemModel::match(), DragDropListModel::mimeData(), DragDropModel::mimeData(), QLocale::monthName(), QStandardItem::operator<(), QTableWidgetItem::operator<(), qdesigner_internal::SheetDelegate::paint(), QScriptDebuggerLocalsItemDelegate::paint(), QFontFamilyDelegate::paint(), QCompleter::pathFromIndex(), QFSCompletor::pathFromIndex(), QLocale::pmText(), QTDSDriver::primaryIndex(), QPSQLDriver::primaryIndex(), QMYSQLDriver::primaryIndex(), QSQLite2Driver::primaryIndex(), QIBaseDriver::primaryIndex(), QOCIDriver::primaryIndex(), QIBaseDriver::record(), QTDSDriver::record(), QPSQLDriver::record(), QOCIDriver::record(), qt::fulltextsearch::std::QHelpSearchIndexReader::run(), qt::fulltextsearch::std::QHelpSearchIndexWriter::run(), QFileDialog::selectedFiles(), QFileDialog::selectFile(), QDirModel::setData(), QScriptDebuggerLocalsModel::setData(), QScriptBreakpointsModel::setData(), TableModel::setData(), qdesigner_internal::SignatureModel::setData(), QStringListModel::setData(), qdesigner_internal::ConnectionModel::setData(), qdesigner_internal::ObjectInspectorModel::setData(), qdesigner_internal::WidgetBoxCategoryModel::setData(), EditableSqlModel::setData(), QUrlModel::setData(), QFileSystemModel::setData(), PhraseModel::setData(), QSqlRelationalTableModel::setData(), StringListModel::setData(), BookmarksModel::setData(), ImageDelegate::setEditorData(), SpreadSheetDelegate::setEditorData(), Context2D::setFillStyle(), QPngHandler::setOption(), QXpmHandler::setOption(), QXbmHandler::setOption(), Phonon::Gstreamer::Effect::setParameterValue(), QPdfBaseEngine::setProperty(), QGraphicsItem::setToolTip(), QFontFamilyDelegate::sizeHint(), QLocale::standaloneDayName(), QLocale::standaloneMonthName(), ResourceListWidget::startDrag(), QTableWidgetItem::statusTip(), QTextFormat::stringProperty(), QSQLite2Driver::tables(), QSQLiteDriver::tables(), QOCIDriver::tables(), QTDSDriver::tables(), QPSQLDriver::tables(), QIBaseDriver::tables(), QMimeData::text(), QTableWidgetItem::text(), Q3DataTable::text(), QAccessibleHeader::text(), QAccessibleItemRow::text(), QLocale::timeFormat(), QTableWidgetItem::toolTip(), QGraphicsItem::toolTip(), QLocale::toString(), QItemDelegate::updateEditorGeometry(), Window::updateWidgets(), qdesigner_internal::DesignerPropertyManager::valueText(), QHeaderView::viewportEvent(), QTableWidgetItem::whatsThis(), and XbelWriter::writeItem().

{
    return qVariantToHelper<QString>(d, String, handler);
}

Generated by  Doxygen 1.6.0   Back to index