[Qt-interest] what is this syntax?

pmqt71 pmqt71 at gmail.com
Sun Sep 12 01:07:09 CEST 2010


Hi all,

could you tell me what the following statement means? What is : 4after
window_state definition?

    uint window_state : 4;


I found this syntax in qwidget.h

...
class QWidgetData
{
public:
    WId winid;
    uint widget_attributes;
    Qt::WindowFlags window_flags;
    uint window_state : 4;
    uint focus_policy : 4;
    uint sizehint_forced :1;
    ...



thanks
pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100912/e4da099d/attachment.html 


More information about the Qt-interest-old mailing list