Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. ImageFormats
Qt 6.11 is out! See what's new in the release blog

ImageFormats

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 653 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MaStaSk
    wrote on last edited by
    #1

    I am using Qt 6.4 and Qt Creator 9.0.1 in Linux Mint and Windows 10 and cmake .
    I need some further crossover Image handling. (TIFF support)

    import QtQuick 2.12
    import QtQuick.Window 2.12
    //import QtImageFormats 1.0
    
    Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
        color: "green"
    
        Image {
            id: imageView
            anchors.fill: parent
            //source: "file:///D:/Bilder/TEST_images/start.png"
            source: "file:///D:/Bilder/TEST_images/test.tif"
            fillMode: Image.PreserveAspectFit
        }
    }
    
    

    The Tiff image is shown when i run with msvc but not with mingw or gcc /g++ (on Linux)
    I installed QtImageFormats with MaintenanceTool (on linux and windows) and tried to add it in the qml file and in the cmake file (find_package and set_target) but it doesnt work. When i activate line 3 in qml code ( //import QtImageFormats 1.0) i get error: "module "QtImageFormats" is not installed" but i found it in the QT plugins folder.

    I can solve this issue in Windows using msvc but what can i do on the Linux System?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MaStaSk
      wrote on last edited by
      #2

      when i go back to version 5.15 it works on all platforms.
      there is also an qtiff.dll in plugin folder of 5.15 but its not in 6.4.
      i tried to find a libary but it seems there is no libary for the newer version?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        I would guess that is a package issue, unless explicitly disabled the plugin should be built and thus made available.

        You should check the bug report system to see if there's already something related.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved