Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to use QT Creator to create a sidebar and implement close-buttons for tabs?
Forum Updated to NodeBB v4.3 + New Features

How to use QT Creator to create a sidebar and implement close-buttons for tabs?

Scheduled Pinned Locked Moved Qt Creator and other tools
11 Posts 6 Posters 11.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.
  • A Offline
    A Offline
    AlecTaylor
    wrote on last edited by
    #1

    Greeting!

    How do I add a sidebar using the Designer in QT Creator?

    Also, how do I add close-buttons to the tabs using the Designer?

    I'm new to Qt, and want to convert my Balsamique mockup into Qt before anything else!

    Please tell me how I can do these two things using QT Creator.

    Thank you,

    Alec Taylor

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamalakshantv
      wrote on last edited by
      #2

      It's Qt and not QT .

      1 Reply Last reply
      0
      • P Offline
        P Offline
        parancibia
        wrote on last edited by
        #3

        Check the "CLTab component":https://projects.forum.nokia.com/colibri/wiki/CLTab included on "Colibri":https://projects.forum.nokia.com/colibri

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

          [quote author="QtK" date="1292592858"]It's Qt and not QT .[/quote]

          Want to add a s/QT/Qt/g as an automatic filter? :-)

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vcsala
            wrote on last edited by
            #5

            And what about QTableWidget? :) (Sorry guys we should have concentrate on the question, my apology)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kamalakshantv
              wrote on last edited by
              #6

              [quote author="VCsala" date="1292616848"]And what about QTableWidget? :) (Sorry guys we should have concentrate on the question, my apology)[/quote]

              Well checking for word match should do. So in that case QTableWidget won't be affected on QT will be replaced with Qt.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vcsala
                wrote on last edited by
                #7

                Now we are really going off-topic... (anyway yes this would do :))

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dangelog
                  wrote on last edited by
                  #8

                  Hey, I want to use QT (QuickTime) with Qt... :-P

                  Back in topic:

                  [quote author="AlecTaylor" date="1292591806"]Greeting!
                  How do I add a sidebar using the Designer in QT Creator?

                  Also, how do I add close-buttons to the tabs using the Designer?
                  [/quote]

                  A sidebar is probably a QDockWidget inside a QMainWindow; to add close buttons just set the QTabWidget "tabsClosable" property in the property editor.

                  Software Engineer
                  KDAB (UK) Ltd., a KDAB Group company

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AlecTaylor
                    wrote on last edited by
                    #9

                    Thanks everyone for your helpful replies, especially;

                    [quote author="peppe" date="1292759065"]Hey, I want to use QT (QuickTime) with Qt... :-P

                    Back in topic:

                    [quote author="AlecTaylor" date="1292591806"]Greeting!
                    How do I add a sidebar using the Designer in QT Creator?

                    Also, how do I add close-buttons to the tabs using the Designer?
                    [/quote]

                    A sidebar is probably a QDockWidget inside a QMainWindow; to add close buttons just set the QTabWidget "tabsClosable" property in the property editor.
                    [/quote]

                    [quote author="paulo" date="1292615517"]Check the "CLTab component":https://projects.forum.nokia.com/colibri/wiki/CLTab included on "Colibri":https://projects.forum.nokia.com/colibri[/quote]

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      Immii
                      wrote on last edited by
                      #10

                      AlecTaylor, Can you please clarify what do you mean by SideBar, usually Side bar is commonly considered as a Desktop widget on right side which can hose several other widget like calendar, weather ,close, notes etc, This comes by default with Windows Vista (atleast) and Google also has sidebar if you download Google Desktop search.
                      By any chance do you want to do that?? Is this possible for you to attach some kind of immage which can give us some clear picture what exactly are you referring to.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        AlecTaylor
                        wrote on last edited by
                        #11

                        !http://i51.tinypic.com/zyhllk.png(Mockup of a Text Editor)!

                        When minimized I'd like it to go to the very left of the window, with the active-file directory [ie; /Calendar/DailyTasks] as it's text, and an expand button.

                        I am currently in the process of collating classes best-suited for my project into a list. Please help me complete population of the following;

                        • QTextStream
                        • QTextEdit
                        • QTreeWidget
                        • QTabBar ⊕ CLTab
                        • QDockWidget
                        • QTreeView
                        • QDirModel
                        1 Reply Last reply
                        1

                        • Login

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