QGroupBox Clickable doesn't work
Unsolved
General and Desktop
-
Hello,i made a QGroupbox and i right click and choose "go to slot..."
I i choosed QGroupBox->clicked()but when i do the code which i want to execute after press the groupbox
it doesnt work,no error givenexecute code:
void dashboard::on_friedrice_clicked() { orderlist.push_back("friedrice"); int totalamountint = orderlist.size(); QString totalamount = QString::number(totalamountint); ui->totalamount->setText("Total Amount of Items: " + totalamount); }
-
@ELEMENTICY
You mean you did this in Creator. Without seeing what code was generated and what you have we cannot know. The suggestion from everyone here is: do not use the signals/slots from Creator, do your own explicitconnect()
s in code. It's easier and more productive in the long term --- or when you get a problem like you are having! -
@JonB Oh
the output code is:I art : Not late-enabling -Xcheck:jni (already on) W art : Unexpected CPU variant for X86 using defaults: x86_64 W System : ClassLoader referenced unknown path: I QtCore : Start I Qt : qt started D : HostConnection::get() New Host Connection established 0x7048a9fcce60, tid 3073 D : HostConnection::get() New Host Connection established 0x7048a9fcb7e0, tid 3089 I OpenGLRenderer: Initialized EGL, version 1.4 D OpenGLRenderer: Swap behavior 1 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D OpenGLRenderer: Swap behavior 0 D EGL_emulation: eglCreateContext: 0x7048a9f355a0: maj 2 min 0 rcv 2 D EGL_emulation: eglMakeCurrent: 0x7048a9f355a0: ver 2 0 (tinfo 0x7048a08ba9a0) D EGL_emulation: eglMakeCurrent: 0x7048a9f355a0: ver 2 0 (tinfo 0x7048a08ba9a0) D EGL_emulation: eglMakeCurrent: 0x7048a9f355a0: ver 2 0 (tinfo 0x7048a08ba9a0) D : HostConnection::get() New Host Connection established 0x7048a331d840, tid 3088 D EGL_emulation: eglMakeCurrent: 0x7048a9f355a0: ver 2 0 (tinfo 0x7048a08ba9a0)
Its an android app so yea xD