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

[SLOVED]the problem is QTabBar in QTabWidget

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.4k 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.
  • H Offline
    H Offline
    hk520590
    wrote on 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
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on 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 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 last edited by
          #4

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

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on 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 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

              • Login

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