Minimum, Maximum, and Threshold Values : qMin « Qt « C++






Minimum, Maximum, and Threshold Values

  

#include <QList>
#include <QDebug>

int main()
{
  int max = qMax(100, 200); // max == 200

  QString s1 = "A";
  QString s2 = "B";
  QString min = qMin(s1, s2);
  qDebug() << min; 
}

   
    
  








Related examples in the same category