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

在构造函数中对一个成员变量赋值会导项目编译异常中止

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.14.2
    • Build System
    • None
    • Windows 10, Qt Creator 4.11.1, Qt 5.14.2
    • Windows

    Description

      问题描述:

      我创建了一个继承自QWidget的类,里面声明了一个私有成员变量(int tf,但在类的构造函数中对tf初始化为0则编译程序异常中止,而不初始化就正常。

      环境:

      Windows 10, Qt Creator 4.11.1, Qt 5.14.2

      项目类型:

      Application-->Qt Widgets Application

      具体情况,请看视频:

      链接:https://pan.baidu.com/s/1ncyAMobKRZiKW3hkDjiXQQ
      提取码:8888

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            wealtersimith Wealter Simith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes