Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29757

GUI Application with a simple QPlainTextEdit inserted in a QMainWindow is not compiling with qt c++

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 11.0.1
    • None
    • Edition Windows 10 Home Single Language
      Version 22H2
      Installed ‎21/‎01/‎2021
      SO Compilation 19045.3570
      Experience Windows Feature Experience Pack 1000.19052.1000.0
    • Windows

    Description

      I have a simple application with a main window and a QPlainTextEdit as main central widget on windows 10. When I try to compile I can't get through and this error is shown:

      C:\Qt\5.12.0\mingw73_64\include\QtWidgets\qtextedit.h:315: error: 'QTextEdit' does not name a type; did you mean 'QTextList'?
      In file included from C:\Qt\5.12.0\mingw73_64\include/QtGui/qtguiglobal.h:43:0,
      from C:\Qt\5.12.0\mingw73_64\include/QtWidgets/qtwidgetsglobal.h:43,
      from C:\Qt\5.12.0\mingw73_64\include\QtWidgets/qmainwindow.h:43,
      from C:\Qt\5.12.0\mingw73_64\include\QtWidgets/QMainWindow:1,
      from ..\Test_edit\mainwindow.h:4,
      from ..\Test_edit\mainwindow.cpp:1:
      C:\Qt\5.12.0\mingw73_64\include/QtWidgets/qtextedit.h:315:20: error: 'QTextEdit' does not name a type; did you mean 'QTextList'?
      Q_DISABLE_COPY(QTextEdit)
      ^
      C:\Qt\5.12.0\mingw73_64\include/QtCore/qglobal.h:372:17: note: in definition of macro 'Q_DISABLE_COPY'
      Class(const Class &) Q_DECL_EQ_DELETE;\
      ^~~~~

      I got this problem with a complex application with QLabel and QPlainTextEdit included, so I tried to find a solution and  build a simple app to figure out what was the problem. 

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            mtovar Jose Manuel P. Tovar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes