Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I cant handle with the Pics
Forum Updated to NodeBB v4.3 + New Features

I cant handle with the Pics

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.4k 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.
  • S Offline
    S Offline
    sirnodin
    wrote on last edited by
    #1

    Its really strange after I moved my qt dir to a usb disk, and now i cant use pixmap or image properly.

    At first, i moved my qt-dir to usb disk and put a qt.conf into it to make it work.
    everything seemed to be good until i write:

    @...
    QPixmap pic("d:/i.jpg");//the jpg exists and i also tried QImage,all the same
    if(pic.isNull()) qDebug()<<"what the hell?";
    ....@

    and it seems the pic is NULL and can not be initialized....

    but the pixmap shows just fine when i take the qt dir back to my hard dist, the original place.

    Now i cant handle with the pics.
    its wired. How to fix it?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Image plugins are missing. Add plugins directory and copy relevant libraries (qjpeg, qgif etc.) into it.

      (Z(:^

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sirnodin
        wrote on last edited by
        #3

        [quote author="sierdzio" date="1352721973"]Image plugins are missing. Add plugins directory and copy relevant libraries (qjpeg, qgif etc.) into it.[/quote]

        Thank u so much!

        its solved now

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Perfect :D Please add [Solved] to the beginning of this topic's subject if you have no further questions related to this problem.

          (Z(:^

          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