Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGroupBox Clickable doesn't work

QGroupBox Clickable doesn't work

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++qt6qgroupbox
4 Posts 2 Posters 699 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ELEMENTICY
    wrote on 7 May 2021, 13:38 last edited by
    #1

    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 given

    execute 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);
    }
    

    Screenshot 2021-05-07 213736.png

    J 1 Reply Last reply 7 May 2021, 13:57
    0
    • E ELEMENTICY
      7 May 2021, 13:38

      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 given

      execute 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);
      }
      

      Screenshot 2021-05-07 213736.png

      J Offline
      J Offline
      JonB
      wrote on 7 May 2021, 13:57 last edited by
      #2

      @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 explicit connect()s in code. It's easier and more productive in the long term --- or when you get a problem like you are having!

      E 2 Replies Last reply 7 May 2021, 14:00
      0
      • J JonB
        7 May 2021, 13:57

        @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 explicit connect()s in code. It's easier and more productive in the long term --- or when you get a problem like you are having!

        E Offline
        E Offline
        ELEMENTICY
        wrote on 7 May 2021, 14:00 last edited by
        #3

        @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

        1 Reply Last reply
        0
        • J JonB
          7 May 2021, 13:57

          @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 explicit connect()s in code. It's easier and more productive in the long term --- or when you get a problem like you are having!

          E Offline
          E Offline
          ELEMENTICY
          wrote on 7 May 2021, 14:01 last edited by
          #4

          @JonB oh okay,i will try to make connect for it

          1 Reply Last reply
          0

          1/4

          7 May 2021, 13:38

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved