Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML-TabWidget
Forum Updated to NodeBB v4.3 + New Features

QML-TabWidget

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 3 Posters 2.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.
  • saitejS Offline
    saitejS Offline
    saitej
    wrote on last edited by
    #1

    Hi

    Is QML Tabwidget part of Qt-5.6.1?

    I was trying to use it with following code

    import QtQuick          2.6
    import QtQuick.Controls 1.4
    import QtQml 2.2
    import QtQuick.Dialogs 1.0
    
    TabWidget{
        
    }
    

    It doesn't seem to recognize Tabwidget but it recognizes TabView

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @saitej
      Looks like they are just example files for showing documentation in QML files.
      Use TabView from QQC1 or TabBar from QQC2 in your applications.

      157

      1 Reply Last reply
      1
      • saitejS Offline
        saitejS Offline
        saitej
        wrote on last edited by saitej
        #3

        Thanks for your reply.
        Seeing the link of tabwidget, it says it is a part of UI components module.

        What is the best component to use (tabview or tabbar) for doing something like this.

        Tab

        p3c0P 1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          From the page you linked:

          Import Statement: import UIComponents 1.0

          you are missing that import

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          saitejS 1 Reply Last reply
          0
          • saitejS saitej

            Thanks for your reply.
            Seeing the link of tabwidget, it says it is a part of UI components module.

            What is the best component to use (tabview or tabbar) for doing something like this.

            Tab

            p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            @saitej Well it looks like you will need a lots of styling to do. So IMO TabView so that it can be styled using TabViewStyle.

            157

            saitejS 1 Reply Last reply
            1
            • VRoninV VRonin

              From the page you linked:

              Import Statement: import UIComponents 1.0

              you are missing that import

              saitejS Offline
              saitejS Offline
              saitej
              wrote on last edited by
              #6

              @VRonin

              I tried that already but it didn't help. Infact I got an error on that line.

              Can you tell me how to know the latest versions of different modules (like QtQuick.Controls etc) that certain version of Qt supports like (Qt 5.6.1).

              Thanks

              1 Reply Last reply
              0
              • p3c0P p3c0

                @saitej Well it looks like you will need a lots of styling to do. So IMO TabView so that it can be styled using TabViewStyle.

                saitejS Offline
                saitejS Offline
                saitej
                wrote on last edited by
                #7

                @p3c0

                I will give it a shot!!

                Thanks.

                1 Reply Last reply
                0
                • p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #8

                  @saitej Donot use TabWidget. Its nothing. Look at its code here. It doesnot even have methods to add tabs. Customization would be more difficult.

                  157

                  saitejS 1 Reply Last reply
                  1
                  • p3c0P p3c0

                    @saitej Donot use TabWidget. Its nothing. Look at its code here. It doesnot even have methods to add tabs. Customization would be more difficult.

                    saitejS Offline
                    saitejS Offline
                    saitej
                    wrote on last edited by
                    #9

                    @p3c0

                    Ya. I forgot that all widgets are for ready to use and not for customized usage. I will keep that in mind.

                    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