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. [SLOVED]the problem is QTabBar in QTabWidget
Forum Updated to NodeBB v4.3 + New Features

[SLOVED]the problem is QTabBar in QTabWidget

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.4k 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.
  • H Offline
    H Offline
    hk520590
    wrote on 7 Aug 2013, 09:30 last edited by
    #1

    how to update the QWidget or QMainWindow achieve this effect

    !http://www.qtcn.org/bbs/attachment/Mon_1308/26_124672_84609524c1e1e20.jpg!
    !http://www.qtcn.org/bbs/attachment/Mon_1308/26_124672_43cebfb08f92e00.jpg!

    the QTabBar follow QWidget resize it size

    1 Reply Last reply
    0
    • R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 7 Aug 2013, 09:48 last edited by
      #2

      @QTabWidget::tabBar()->setExpanding(true)@

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hk520590
        wrote on 8 Aug 2013, 01:10 last edited by
        #3

        sorry,it is no have effect
        ,,,,,,,,
        @ ui->tabWidget->tabBar()->setExpanding(true);@
        [quote author="raven-worx" date="1375868910"]@QTabWidget::tabBar()->setExpanding(true)@[/quote]

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hk520590
          wrote on 8 Aug 2013, 06:04 last edited by
          #4

          my way is using stackwidget and button
          it's fine!

          1 Reply Last reply
          0
          • R Offline
            R Offline
            raven-worx
            Moderators
            wrote on 8 Aug 2013, 07:15 last edited by
            #5

            you want the small or wide spread tabs?

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hk520590
              wrote on 9 Aug 2013, 02:41 last edited by
              #6

              I want to resize by the QWidget and full the Qwidget width;
              [quote author="raven-worx" date="1375946112"]you want the small or wide spread tabs?[/quote]

              1 Reply Last reply
              0

              5/6

              8 Aug 2013, 07:15

              • Login

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