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. Which Signal to use for QTabwidget ?
Forum Updated to NodeBB v4.3 + New Features

Which Signal to use for QTabwidget ?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.3k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    feedmeqt
    wrote on last edited by
    #1

    Hi,
    I'm new to UI development.So, apologize for the inconvience.

    I'v Qt-plugin for VS2010. So, using the QT designer I've developed a Tab window. This tab have got some fields with parameters(QTaableWidget) . So, my requirement is to fill the parameters when a user click the tab. I've made a function which contains those values and I assume like when the user select the tab the signal associated for the "Tab select" will call my function which is a slot and thus fills the parameters.

    Can I do that or is there anything which I should do.Need suggestion.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      So, you are using "QTabWidget":http://doc.qt.nokia.com/latest/qtabwidget.html right ? , That emits "this":http://doc.qt.nokia.com/latest/qtabwidget.html#currentChanged signal :)


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        feedmeqt
        wrote on last edited by
        #3

        HI, tanx for the quick reply.

        yes, From the deisgner what I've noticed I'm writing based on that. From the Qt designer I first created a Main tabWidget(class:QTabWidget), within that I created 2 tabs (class:QWidget ) and under each tabs I again created tablewidget(class:QTableWidget). So, the tableWidget contains some feild parameters which I need to basically fill it.

        So,"currentChanged()" signal will be invoked when I do a select on any tab[2 tabs created ] created under Main tabWidget.

        Once I test this I'll come back.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          I don't think if currentChanged() is emitted if an already selected tab is clicked! Otherwise, this works fine.


          Declaration of (Platform) independence.

          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