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. Expandable Text View
Forum Updated to NodeBB v4.3 + New Features

Expandable Text View

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 344 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.
  • A Offline
    A Offline
    azhagans2
    wrote on last edited by
    #1

    iam working in a Qt project , i want to expand and show some details when a push button is clicked , is there any option to do that :) Thanks in Advance

    jsulmJ 1 Reply Last reply
    0
    • A azhagans2

      iam working in a Qt project , i want to expand and show some details when a push button is clicked , is there any option to do that :) Thanks in Advance

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @azhagans2 It is not clear what exactly you are asking.
      If you want to know how to trigger an action when a button is pressed then connect a slot to https://doc.qt.io/qt-6/qabstractbutton.html#clicked signal. If you want to know something else then please ask a better question.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @azhagans2 It is not clear what exactly you are asking.
        If you want to know how to trigger an action when a button is pressed then connect a slot to https://doc.qt.io/qt-6/qabstractbutton.html#clicked signal. If you want to know something else then please ask a better question.

        A Offline
        A Offline
        azhagans2
        wrote on last edited by
        #3

        @jsulm thanks for reply , yeah i know signals and slots , what i want is , there is one push button , if we clicked that push button means , it should expand some textview or lineEdit below that push button and show some messages , how can i approach that , thanks

        jsulmJ 1 Reply Last reply
        0
        • A azhagans2

          @jsulm thanks for reply , yeah i know signals and slots , what i want is , there is one push button , if we clicked that push button means , it should expand some textview or lineEdit below that push button and show some messages , how can i approach that , thanks

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @azhagans2 Either add these widgets dynamically when the button is pressed. Or use a https://doc.qt.io/qt-6/qstackedwidget.html to show these widgets when the button is pressed.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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