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

QPixmap::fromImage crashes on console application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.9.3
    • None
    • 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

            sletta Gunnar Sletta
            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