![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() |
Гость_klochec_v_* |
![]()
Сообщение
#1
|
Гости ![]() |
пользовал кто-нибудь браузер??? расскажите о ваших трудах пожалуйста. есть проблема с отображением в браузере картинок и разной веб-мелочи.
наверное загвоздка с QMimeSourceFactory? |
|
|
![]() |
ViGOur |
![]()
Сообщение
#2
|
![]() Мастер ![]() ![]() ![]() ![]() ![]() ![]() Группа: Модератор Сообщений: 3296 Регистрация: 9.10.2007 Из: Москва Пользователь №: 4 Спасибо сказали: 231 раз(а) Репутация: ![]() ![]() ![]() |
Как вариант, можно использовать:
Цитата QVariant QTextBrowser::loadResource ( int type, const QUrl & name ) [virtual] Тоесть, переопределяешь эту функцию, проверяешь если в type пришло QTextDocument::ImageResource уменьшаеш картинку с помощью QImage::scaled
This function is called when the document is loaded. The type indicates the type of resource to be loaded. For each image in the document, this function is called once. The default implementation ignores type and tries to locate the resources by interpreting name as a file name. If it is not an absolute path it tries to find the file in the paths of the searchPaths property and in the same directory as the current source. On success, the result is a QVariant that stores a QByteArray with the contents of the file. If you reimplement this function, you can return other QVariant types. The table below shows which variant types are supported depending on the resource type:
Сообщение отредактировал ViGOur - 29.11.2007, 17:40 |
|
|
![]() ![]() ![]() |
![]() |
|
Текстовая версия | Сейчас: 8.6.2025, 8:19 |