Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
counter.cpp
Valderman
Apr 1st, 2022
(
edited
)
180
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include "Counter.h"
Counter
::
Counter
(
)
:
QObject
(
)
, m_nValue
(
0
)
{
}
void
Counter
::
slotInc
(
)
{
emit counterChanged
(
++
m_nValue
)
;
if
(
m_nValue
==
5
)
{
emit goodbye
(
)
;
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🎁 G2A.COM FREE GIFT CARD GUIDE JUN 2024 V2 🎁
GetText | 1 min ago | 0.39 KB
🤑G2A.com Free Gift Card FIX June 2024🤑
JavaScript | 4 min ago | 0.29 KB
🤑G2A.com Free Gift Card FIX June 2024🤑
JavaScript | 10 min ago | 0.31 KB
SendNukes
Lua | 14 min ago | 321.01 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 16 min ago | 0.30 KB
🤑G2A.com Free Gift Card FIX June 2024🤑
JavaScript | 22 min ago | 0.29 KB
Welcome
Lua | 28 min ago | 1.90 KB
🤑G2A.com Free Gift Card FIX June 2024🎁
JavaScript | 29 min ago | 0.30 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!