Q3Picture Class ReferenceThe Q3Picture class is a paint device that records and replays Q3Painter commands. Далее... #include <Q3Picture> Данный класс является частью библиотеки поддержки Qt 3. Он предоставлен для поддержки ранее написанного кода. Мы настоятельно не рекомендуем использовать этот класс в новом коде. Для получения дополнительной информации смотрите Портирование на Qt 4. Inherits: QPicture. Открытые функции
Дополнительные унаследованные члены
Подробное описаниеThe Q3Picture class is a paint device that records and replays Q3Painter commands. Q3Picture can also read and write SVG (Scalable Vector Graphics) files, a W3C XML format. Note that when using the load() and save() functions to read and write SVG files, the format must be specified. See also QPicture. Описание функций-членовQ3Picture::Q3Picture ()Constructs a Q3Picture. Q3Picture::Q3Picture ( const QPicture & other )Создаёт копию other. bool Q3Picture::load ( QIODevice * device, const char * format = 0 )Loads the picture in the specified format from the given device. Returns true if the file is loaded successfully; otherwise returns false. Note that when using the load() function to read SVG files, the format must be specified. Например: Q3Picture picture; picture.load("drawing.svg", SVG); See also save(). bool Q3Picture::load ( const QString & fileName, const char * format = 0 )Это перегруженная функция. Loads the picture in the specified format from a file with the given fileName. Returns true if the file is loaded successfully; otherwise returns false. bool Q3Picture::save ( QIODevice * device, const char * format = 0 )Saves the picture in the specified format to the given device. Returns true if the save is successful. Returns false if, for example, the picture is still being painted, i.e., QPainter::end() has not yet been called. Note that when using the save() function to save SVG files, the format must be specified. Например: Q3Picture picture; QPainter painter; painter.begin(&picture); // paint in picture ... painter.end(); // painting done picture.save("drawing.svg", SVG); // save picture Смотрите также load(). bool Q3Picture::save ( const QString & fileName, const char * format = 0 )Это перегруженная функция. Saves the picture in the specified format to the file with the given fileName. Смотрите также load(). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |