Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64983

QPixmap::fromImage crashes on console application

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.9.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Distributor ID: Ubuntu
      Description: Ubuntu 16.04.3 LTS
      Release: 16.04
      Codename: xenial

      Description

      tried to load a pixmap from an image like so:

      QPixmap::fromImage(QImage(path));

      and crashes.

      Problem goes away if I replace:

      QCoreApplication app(argc, argv);
      

      by this:

      QGuiApplication app(argc, argv);
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sletta Gunnar Sletta
            Reporter:
            mchiasson Mathieu-Andre Chiasson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes