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. connection QPushButton and QWidget for QTabWidget
QtWS25 Last Chance

connection QPushButton and QWidget for QTabWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 188 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.
  • O Offline
    O Offline
    Oussou
    wrote on last edited by
    #1

    Hello,
    I would like to know how to make so that by pressing button1 the page page1 is displayed.
    please?Capture.PNG

    artwawA 1 Reply Last reply
    0
    • O Oussou

      Hello,
      I would like to know how to make so that by pressing button1 the page page1 is displayed.
      please?Capture.PNG

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @Oussou you need to connect the clicked() signal from QPushButton to the respective slots.
      https://doc.qt.io/qt-5/signalsandslots.html

      If you are using QTabWidget for those "page" tabs of yours (you did not specify that) the slot would be setCurrentIndex()

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      2
      • O Offline
        O Offline
        Oussou
        wrote on last edited by
        #3

        Thnak you

        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