The following members of class <QtGlobal> are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
(obsolete) typedef |
QtMsgHandler |
(obsolete) QtMsgHandler |
qInstallMsgHandler(QtMsgHandler handler) |
(obsolete) int |
qrand() |
(obsolete) void |
qsrand(uint seed) |
This is a typedef for a pointer to a function with the following signature:
void myMsgHandler(QtMsgType, const char *);
This typedef is deprecated, you should use QtMessageHandler instead.
See also QtMsgType, QtMessageHandler, qInstallMsgHandler(), and qInstallMessageHandler().
Installs a Qt message handler which has been defined previously. This method is deprecated, use qInstallMessageHandler instead.
See also QtMsgHandler and qInstallMessageHandler().
Thread-safe version of the standard C++ rand()
function.
Returns a value between 0 and RAND_MAX
(defined in <cstdlib>
and <stdlib.h>
), the next number in the current sequence of pseudo-random integers.
Use qsrand()
to initialize the pseudo-random number generator with a seed value. Seeding must be performed at least once on each thread. If that step is skipped, then the sequence will be pre-seeded with a
constant value.
Note: This function is deprecated. In new applications, use QRandomGenerator instead.
This function was introduced in Qt 4.2.
See also qrand() and QRandomGenerator.
Thread-safe version of the standard C++ srand()
function.
Sets the argument seed to be used to generate a new random number sequence of pseudo random integers to be returned by qrand().
The sequence of random numbers generated is deterministic per thread. For example, if two threads call qsrand(1) and subsequently call qrand(), the threads will get the same random number sequence.
Note: This function is deprecated. In new applications, use QRandomGenerator instead.
This function was introduced in Qt 4.2.
See also qrand() and QRandomGenerator.
Use qAbs(n) instead.
Use qMax(x, y) instead.
Use qMin(x, y) instead.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: