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. QImage to Qpixmap conversion is too slow
Forum Updated to NodeBB v4.3 + New Features

QImage to Qpixmap conversion is too slow

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 4 Posters 6.6k Views 3 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.
  • L lansing

    @mrjj

    Hi, I have set the image to one in my resource folder for testing, now it has crashed at line m_frameImage = image. I have changed the image argument from const QImage & to QImage*, I don't know if that have a effect on it. But in debug, it did show my image dimension.

    QImage *img= new QImage(":/cross.png");
    myGLPainter->drawImage(img);
    
    SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #21

    @lansing said in QImage to Qpixmap conversion is too slow:

    QImage *img= new QImage(":/cross.png");
    myGLPainter->drawImage(img);

    That's the wrong thing to do as you will leak images doing so.

    Beside the initialization issue pointed by @Christian-Ehrlicher can you provide the stack trace of your crash ?

    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
    1

    • Login

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