以下成員源於類 <QtGlobal> 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
typedef
|
QtMsgHandler |
(obsolete)
QtMsgHandler
|
qInstallMsgHandler (QtMsgHandler handler ) |
(obsolete)
int
|
qrand () |
(obsolete)
void
|
qsrand (uint seed ) |
(obsolete)
|
QABS ( n ) |
(obsolete)
|
QMAX ( x , y ) |
(obsolete)
|
QMIN ( x , y ) |
This typedef is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
這是采用以下簽名的函數指針的 typedef:
void myMsgHandler(QtMsgType, const char *);
This typedef is deprecated, you should use QtMessageHandler 代替。
另請參閱 QtMsgType , QtMessageHandler , qInstallMsgHandler (),和 qInstallMessageHandler ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Installs a Qt message handler which has been defined previously. This method is deprecated, use qInstallMessageHandler 代替。
另請參閱 QtMsgHandler and qInstallMessageHandler ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Thread-safe version of the standard C++
rand()
函數。
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.
使用
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.
注意: This function is deprecated. In new applications, use QRandomGenerator 代替。
該函數在 Qt 4.2 引入。
另請參閱 qrand() and QRandomGenerator .
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Thread-safe version of the standard C++
srand()
函數。
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.
注意: This function is deprecated. In new applications, use QRandomGenerator 代替。
該函數在 Qt 4.2 引入。
另請參閱 qrand () 和 QRandomGenerator .
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 qAbs ( n ) 代替。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 qMax ( x , y ) 代替。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 qMin ( x , y ) 代替。