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

Qt Class Generation 生成代码,选择使用Qt模块名的时候,产生旧的删除的模块名

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 13.0.0
    • Editors
    • None
    • win10

      设定生成代码添加qt模块后,如果添加ui界面类,生成的代码如下:

      #include <QtGui/QDialog>

      这个代码是错误的,qt6 后,QDialog不在模块QtGui下,正确的代码应该是:

      #include <QtWidgets/QDialog>

        1. 微信截图_20240428111520.png
          163 kB
          wang yongliang
        2. 微信截图_20240428111620.png
          156 kB
          wang yongliang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            youyuanshanren wang yongliang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes