Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on QNX
  4. Draw picture by using Qt and raw data
Forum Updated to NodeBB v4.3 + New Features

Draw picture by using Qt and raw data

Scheduled Pinned Locked Moved Qt on QNX
4 Posts 2 Posters 4.8k 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.
  • A Offline
    A Offline
    AnatoliyL
    wrote on last edited by
    #1

    Hey all.
    I'm decoding video with libAVcodec, then i scale it with sws_scale() and draw it with QImage. This works correct at Linux. But when i cross compile my project and run it under qnx it doesn't work. I think that problem in QImage (i'm not sure). Is anyone knows what is the best way to draw picture with Qt 4.8.5 (only) resources from raw data at qnx? It's necessary to use qt4.8.5.

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

      Hi,

      It might help to explain exactly what doesn't work on qnx

      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
      • A Offline
        A Offline
        AnatoliyL
        wrote on last edited by
        #3

        Hello, SGaist.

        I try different ways to draw picture with QImage, use QApplication + QMainwindow classes in project.

        1. Simply load from file.

          @QImage* image = new QImage;
          

        image->load("/tmp/image.png");@

        It works fine at Linux, but at qnx - same project shows empty white window (QMainWindow i think) on green background.
        I launch project without photon (from text console) with command - "./ProgName -qws"

        1. Load from raw data.

           @myImage = new QImage(imageBuffer, width, height, QImage::Format_RGB32);@
          

        imageBuffer - buffer with raw data (uint8_t) that received after all needed libAV stuff done.
        Same think - at linux it works fine, but at qnx - empty white window (QMainWindow i think) on green background.

        No errors, no any other information.

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

          You don't check that your image is successfully loaded and I'd be surprised that you can access /tmp on qnx.

          Any reason to use a pointer to a QImage ? It's an implicitly shared class so you should save the trouble.

          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