Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.3.0
-
None
-
{noformat}
Qt 5.8.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb"
OS: Fedora 24 (Twenty Four) [linux version 4.11.5-100.fc24.x86_64]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX
Environment:
QT_IM_MODULE="ibus"
QTINC="/usr/lib64/qt-3.3/include"
QTLIB="/usr/lib64/qt-3.3/lib"
QTDIR="/usr/lib64/qt-3.3"
Features: QT_NO_EXCEPTIONS
Library info:
PrefixPath: /home/rvs/Qt/5.8/gcc_64
DocumentationPath: /home/rvs/Qt/Docs/Qt-5.8
HeadersPath: /home/rvs/Qt/5.8/gcc_64/include
LibrariesPath: /home/rvs/Qt/5.8/gcc_64/lib
LibraryExecutablesPath: /home/rvs/Qt/5.8/gcc_64/libexec
BinariesPath: /home/rvs/Qt/5.8/gcc_64/bin
PluginsPath: /home/rvs/Qt/5.8/gcc_64/plugins
ImportsPath: /home/rvs/Qt/5.8/gcc_64/imports
Qml2ImportsPath: /home/rvs/Qt/5.8/gcc_64/qml
ArchDataPath: /home/rvs/Qt/5.8/gcc_64
DataPath: /home/rvs/Qt/5.8/gcc_64
TranslationsPath: /home/rvs/Qt/5.8/gcc_64/translations
ExamplesPath: /home/rvs/Qt/Examples/Qt-5.8
TestsPath: /home/rvs/Qt/5.8/gcc_64/tests
SettingsPath: /home/rvs/Qt/5.8/gcc_64
Standard paths [*...* denote writable entry]:
DesktopLocation: "Desktop" */home/rvs/Desktop*
DocumentsLocation: "Documents" */home/rvs/Documents*
FontsLocation: "Fonts" */home/rvs/.local/share/fonts* /home/rvs/.fonts
ApplicationsLocation: "Applications" */home/rvs/.local/share/applications* /usr/local/share/applications /usr/share/applications /usr/share/gdm/applications /var/lib/menu-xdg/applications /home/rvs/.local/share/flatpak/exports/share/applications /var/lib/flatpak/exports/share/applications
MusicLocation: "Music" */home/rvs/Music*
MoviesLocation: "Movies" */home/rvs/Videos*
PicturesLocation: "Pictures" */home/rvs/Pictures*
TempLocation: "Temporary Directory" */tmp*
HomeLocation: "Home" */home/rvs*
AppLocalDataLocation: "Application Data" */home/rvs/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag /home/rvs/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag
CacheLocation: "Cache" */home/rvs/.cache/QtProject/qtdiag*
GenericDataLocation: "Shared Data" */home/rvs/.local/share* /usr/local/share /usr/share /usr/share/gdm /var/lib/menu-xdg /home/rvs/.local/share/flatpak/exports/share /var/lib/flatpak/exports/share
RuntimeLocation: "Runtime" */run/user/1000*
ConfigLocation: "Configuration" */home/rvs/.config* /etc/xdg
DownloadLocation: "Download" */home/rvs/Downloads*
GenericCacheLocation: "Shared Cache" */home/rvs/.cache*
GenericConfigLocation: "Shared Configuration" */home/rvs/.config* /etc/xdg
AppDataLocation: "Application Data" */home/rvs/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag /home/rvs/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag
AppConfigLocation: "Application Configuration" */home/rvs/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag
File selectors (increasing order of precedence):
en_US unix linux fedora
Network:
Using "OpenSSL 1.0.2k-fips 26 Jan 2017", version: 0x100020bf
Platform capabilities: ThreadedPixmaps OpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition
Style hints:
mouseDoubleClickInterval: 400
mousePressAndHoldInterval: 800
startDragDistance: 10
startDragTime: 500
startDragVelocity: 0
keyboardInputInterval: 400
keyboardAutoRepeatRate: 30
cursorFlashTime: 1000
showIsFullScreen: 0
showIsMaximized: 0
passwordMaskDelay: 0
passwordMaskCharacter: U+2022
fontSmoothingGamma: 1
useRtlExtensions: 0
setFocusOnTouchRelease: 0
tabFocusBehavior: Qt::TabFocusBehavior(TabFocusAllControls)
singleClickActivation: 0
Additional style hints (QPlatformIntegration):
ReplayMousePressOutsidePopup: 0
Theme:
Available : gtk3,gnome,LXDE,generic
Styles : fusion,windows
Icon theme : Fedora, from /home/rvs/.icons,/usr/local/share/icons,/usr/share/icons,/usr/local/share/icons,/usr/share/icons,/usr/share/pixmaps
System font : "Sans" 10
Native file dialog
Native color dialog
Native font dialog
Fonts:
General font : "Sans" 10
Fixed font : "monospace" 10
Title font : "DejaVu Sans" 12
Smallest font: "DejaVu Sans" 12
Palette:
WindowText: #ff000000
Button: #ffefebe7
Light: #ffffffff
Midlight: #ffcbc7c4
Dark: #ff9f9d9a
Mid: #ffb8b5b2
Text: #ff000000
BrightText: #ffffffff
ButtonText: #ff000000
Base: #ffffffff
Window: #ffefebe7
Shadow: #ff767472
Highlight: #ff308cc6
HighlightedText: #ffffffff
Link: #ff0000ff
LinkVisited: #ffff00ff
AlternateBase: #fff7f5f3
NoRole: #ff000000
ToolTipBase: #ffffffdc
ToolTipText: #ff000000
Screens: 1, High DPI scaling: inactive
# 0 "eDP" Depth: 24 Primary: yes
Geometry: 1600x900+0+0 Available: 1600x898+0+0
Physical size: 382x215 mm Refresh: 60 Hz Power state: 0
Physical DPI: 106.387,106.326 Logical DPI: 96,96 Subpixel_None
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
Touch devices: 1
TouchScreen "ELAN Touchscreen", max 15 touch points, capabilities: Position
LibGL Vendor: X.Org
Renderer: Gallium 0.4 on AMD ARUBA (DRM 2.49.0 / 4.11.5-100.fc24.x86_64, LLVM 3.8.0)
Version: 3.0 Mesa 12.0.3
Shading language: 1.30
Format: Version: 3.0 Profile: 0 Swap behavior: 0 Buffer size (RGB): 8,8,8
{noformat}
{noformat} Qt 5.8.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" OS: Fedora 24 (Twenty Four) [linux version 4.11.5-100.fc24.x86_64] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX Environment: QT_IM_MODULE="ibus" QTINC="/usr/lib64/qt-3.3/include" QTLIB="/usr/lib64/qt-3.3/lib" QTDIR="/usr/lib64/qt-3.3" Features: QT_NO_EXCEPTIONS Library info: PrefixPath: /home/rvs/Qt/5.8/gcc_64 DocumentationPath: /home/rvs/Qt/Docs/Qt-5.8 HeadersPath: /home/rvs/Qt/5.8/gcc_64/include LibrariesPath: /home/rvs/Qt/5.8/gcc_64/lib LibraryExecutablesPath: /home/rvs/Qt/5.8/gcc_64/libexec BinariesPath: /home/rvs/Qt/5.8/gcc_64/bin PluginsPath: /home/rvs/Qt/5.8/gcc_64/plugins ImportsPath: /home/rvs/Qt/5.8/gcc_64/imports Qml2ImportsPath: /home/rvs/Qt/5.8/gcc_64/qml ArchDataPath: /home/rvs/Qt/5.8/gcc_64 DataPath: /home/rvs/Qt/5.8/gcc_64 TranslationsPath: /home/rvs/Qt/5.8/gcc_64/translations ExamplesPath: /home/rvs/Qt/Examples/Qt-5.8 TestsPath: /home/rvs/Qt/5.8/gcc_64/tests SettingsPath: /home/rvs/Qt/5.8/gcc_64 Standard paths [*...* denote writable entry]: DesktopLocation: "Desktop" */home/rvs/Desktop* DocumentsLocation: "Documents" */home/rvs/Documents* FontsLocation: "Fonts" */home/rvs/.local/share/fonts* /home/rvs/.fonts ApplicationsLocation: "Applications" */home/rvs/.local/share/applications* /usr/local/share/applications /usr/share/applications /usr/share/gdm/applications /var/lib/menu-xdg/applications /home/rvs/.local/share/flatpak/exports/share/applications /var/lib/flatpak/exports/share/applications MusicLocation: "Music" */home/rvs/Music* MoviesLocation: "Movies" */home/rvs/Videos* PicturesLocation: "Pictures" */home/rvs/Pictures* TempLocation: "Temporary Directory" */tmp* HomeLocation: "Home" */home/rvs* AppLocalDataLocation: "Application Data" */home/rvs/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag /home/rvs/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag CacheLocation: "Cache" */home/rvs/.cache/QtProject/qtdiag* GenericDataLocation: "Shared Data" */home/rvs/.local/share* /usr/local/share /usr/share /usr/share/gdm /var/lib/menu-xdg /home/rvs/.local/share/flatpak/exports/share /var/lib/flatpak/exports/share RuntimeLocation: "Runtime" */run/user/1000* ConfigLocation: "Configuration" */home/rvs/.config* /etc/xdg DownloadLocation: "Download" */home/rvs/Downloads* GenericCacheLocation: "Shared Cache" */home/rvs/.cache* GenericConfigLocation: "Shared Configuration" */home/rvs/.config* /etc/xdg AppDataLocation: "Application Data" */home/rvs/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /usr/share/gdm/QtProject/qtdiag /var/lib/menu-xdg/QtProject/qtdiag /home/rvs/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag AppConfigLocation: "Application Configuration" */home/rvs/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag File selectors (increasing order of precedence): en_US unix linux fedora Network: Using "OpenSSL 1.0.2k-fips 26 Jan 2017", version: 0x100020bf Platform capabilities: ThreadedPixmaps OpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 800 startDragDistance: 10 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1000 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+2022 fontSmoothingGamma: 1 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusBehavior(TabFocusAllControls) singleClickActivation: 0 Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 0 Theme: Available : gtk3,gnome,LXDE,generic Styles : fusion,windows Icon theme : Fedora, from /home/rvs/.icons,/usr/local/share/icons,/usr/share/icons,/usr/local/share/icons,/usr/share/icons,/usr/share/pixmaps System font : "Sans" 10 Native file dialog Native color dialog Native font dialog Fonts: General font : "Sans" 10 Fixed font : "monospace" 10 Title font : "DejaVu Sans" 12 Smallest font: "DejaVu Sans" 12 Palette: WindowText: #ff000000 Button: #ffefebe7 Light: #ffffffff Midlight: #ffcbc7c4 Dark: #ff9f9d9a Mid: #ffb8b5b2 Text: #ff000000 BrightText: #ffffffff ButtonText: #ff000000 Base: #ffffffff Window: #ffefebe7 Shadow: #ff767472 Highlight: #ff308cc6 HighlightedText: #ffffffff Link: #ff0000ff LinkVisited: #ffff00ff AlternateBase: #fff7f5f3 NoRole: #ff000000 ToolTipBase: #ffffffdc ToolTipText: #ff000000 Screens: 1, High DPI scaling: inactive # 0 "eDP" Depth: 24 Primary: yes Geometry: 1600x900+0+0 Available: 1600x898+0+0 Physical size: 382x215 mm Refresh: 60 Hz Power state: 0 Physical DPI: 106.387,106.326 Logical DPI: 96,96 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 Touch devices: 1 TouchScreen "ELAN Touchscreen", max 15 touch points, capabilities: Position LibGL Vendor: X.Org Renderer: Gallium 0.4 on AMD ARUBA (DRM 2.49.0 / 4.11.5-100.fc24.x86_64, LLVM 3.8.0) Version: 3.0 Mesa 12.0.3 Shading language: 1.30 Format: Version: 3.0 Profile: 0 Swap behavior: 0 Buffer size (RGB): 8,8,8 {noformat}
-
82040140077723a5e09316e6f1595ccda27fc7c3
Description
Qt Creator 4.3.0 shows the following output in Locals and Expressions when inspecting a structure containing one structure consisting of a simple int and a second structure consisting of a typedef'ed enum:
This is produced by the following code:
#include <QCoreApplication> typedef enum { SOME_ENUM_0 = 0, SOME_ENUM_1, SOME_ENUM_2, SOME_ENUM_3 } TypedefEnum; struct StructWithTypdefEnum { TypedefEnum se = SOME_ENUM_0; std::string s = "This should also be accessible, but isn't!"; }; struct StructWithInt { int se = 0; std::string s = "This works!"; }; struct ShowBug { StructWithTypdefEnum inaccessible; StructWithInt accessible; std::string msg; }; int main(void) { ShowBug test; test.msg = "Bug in QtCreator 4.3.0"; return 0; // breakpoint here }
Qt Creator up to 4.2.x treated this correctly and the bug was first introduced in 4.3.0. This is how Qt Creator 4.2.1 shows it (correctly) in Locals and Expressions: