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
QtWS25 Last Chance

QGroupBox Clickable doesn't work

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++qt6qgroupbox
4 Posts 2 Posters 696 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 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

    JonBJ 1 Reply Last reply
    0
    • E ELEMENTICY

      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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on 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
      0
      • JonBJ JonB

        @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 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
        • JonBJ JonB

          @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 last edited by
          #4

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

          1 Reply Last reply
          0

          • Login

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