Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-202

QtQuick controls not rendering in an MFC app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Some Release
    • MFC Migration
    • None
    • Windows

    Description

      It seems that QtQuick controls are not being rendered in an MFC application. The attached Visual Studio solution uses QtWinMigrate project to integrate Qt and MFC controls.

      When instantiating a QtQuick control using QtQuickWidget (a simple red Rectangle) and trying to add it to the layout of whose parent is a QWinWidget a white area is being displayed instead.

      As part of the test application, I have used two native QWidget controls inside the layout where the QtQuickWidget was added : QLabel and QLineEdit and those are being rendered fine.

      See also README.txt file from the attached package.

      Attachments

        1. MfcQtQuick.zip
          269 kB
        2. MfcQtQuickApp.png
          MfcQtQuickApp.png
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            cernobaiv Victor Cernobai
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes