Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why is Qt::WFlags not declared?
QtWS25 Last Chance

Why is Qt::WFlags not declared?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 12.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lucky7456969
    wrote on last edited by
    #1

    [code]
    #ifndef _DXWIDGET_H
    #define _DXWIDGET_H

    #include <d3dx9.h>

    #include <QtWidgets/qwidget.h>
    #include <QtWidgets/QMainWindow.h>
    #include <QtWidgets/QStatusBar.h>
    #include <QtGui/QResizeEvent>
    #include <QtGui/QVector2D.h>
    #include <QtGui/QVector3D.h>
    #include <QtGui/QVector4D.h>
    #include "../common/common.h"
    #include "../common/camera.h"
    #include "../ui_dxwidget.h"

    class DXWidget : public QWidget {
    Q_OBJECT

    public:
    BT_DECLARE_ALIGNED_ALLOCATOR()

    DXWidget( QWidget *parent = 0, Qt::WFlags flags = 0 ) : QWidget( parent, flags )
    {
            setAttribute(Qt::WA_PaintOnScreen);
            setAttribute(Qt::WA_NoSystemBackground);
    
            m_standBy = false;
            m_lastRendered = 0;
            m_fTime = 0;
            m_camera = (Camera*)_aligned_malloc(sizeof(Camera),16);
            m_camera->initialize();
    }
    

    [/code]

    [code]
    In file included from moc_dxwidget.cpp:9:0:
    GUI/dxwidget.h:32:40: error: 'Qt::WFlags' has not been declared
    DXWidget( QWidget *parent = 0, Qt::WFlags flags = 0 ) : QWidget( parent, flags )
    [/code]

    I am not sure why WFlags is undeclared, seems to be something missing. But not sure of whom
    Thanks
    Jack

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lucky7456969
      wrote on last edited by
      #2

      Okay, I find out it should be WindowFlags instead

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        Good you found it.

        Could you edit the title of your first post and prepend [solved] to it? That way you inform others it's solved already

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved