Hello,

Qt Creator 4.8.2

Qt Code:
  1. int qty = 6;
  2. QLabel *topLabel[qty], *numLabel[qty];
  3.  
  4. for( int i = 0; i < qty; i++)
  5. {
  6. topLabel[i] = newQLabel(topLabel[i]);
  7. topLabel[i]->setGeometry(20+(i*108),20,102,67);
  8. topLabel[i]->setFrameStyle(QFrame::StyledPanel|QFrame::Sunken);
  9. topLabel[i]->setLineWidth(4);
  10. numLabel[i] = newQLabel(topLabel[i]);
  11. numLabel[i]->setGeometry(2,86,100,70);
  12. numLabel[i]->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
  13. numLabel[i]->setStyleSheet("QLabel{color:blue;}");
  14. numLabel[i]->setFont(*font);
  15. }
To copy to clipboard, switch view to plain text mode 
header
Qt Code:
  1. #ifndef TEST_H
  2. #define TEST_H
  3.  
  4. #include <QMainWindow>
  5.  
  6. class test : public QMainWindow
  7. {
  8. Q_OBJECT
  9.  
  10. public:
  11. test(QWidget *parent = nullptr);
  12. ~test();
  13. private:
  14. void tDelay(int milliSecs);
  15. QList<uint> getList(int maxNum, int minNum, int qty);
  16. };
  17.  
  18. #endif
To copy to clipboard, switch view to plain text mode 
pro file
Qt Code:
  1. QT += core gui
  2.  
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4.  
  5. TARGET = test
  6. TEMPLATE = app
  7.  
  8. SOURCES += main.cpp\
  9. test.cpp
  10.  
  11. HEADERS += test.h
  12.  
  13. CONFIG += c++11
To copy to clipboard, switch view to plain text mode 
warning: variable length arrays are a C99 feature

It compiled without warnings on an earlier version of Qt.
Now the program compiles and runs OK, but with various warnings, this being one of them.
If I turn off clang, all warnings are gone.
Suggestions please.

Regards