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. QWidget with toolbar buttons navigae to next line on reduction of size
Forum Updated to NodeBB v4.3 + New Features

QWidget with toolbar buttons navigae to next line on reduction of size

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 367 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.
  • M Offline
    M Offline
    meganathan
    wrote on last edited by
    #1

    Guys i am trying to implement the QToobar inside the QWidget and it has so many icons on it, on reducing the window size i have to move some of the icons to next line those are not visible in first row.

    Please help me with the approach that I need to proceed for this case

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      QToolBar does not support this. You can create more than one toolbar so you can move the second below the first.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • M Offline
        M Offline
        meganathan
        wrote on last edited by
        #3

        I will create 3 toolbars! But how to make it to next row dynamically based on size?

        Christian EhrlicherC 1 Reply Last reply
        0
        • M meganathan

          I will create 3 toolbars! But how to make it to next row dynamically based on size?

          Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @meganathan said in QWidget with toolbar buttons navigae to next line on reduction of size:

          But how to make it to next row dynamically based on size?

          You can't - the user can move toolbars around by himself like in any other application.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • M Offline
            M Offline
            meganathan
            wrote on last edited by
            #5

            Any other approach how can i acheive this feature in my application!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              You could implement your own toolbar using the Flow Layout.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • M Offline
                M Offline
                meganathan
                wrote on last edited by
                #7

                Thanks FlowLayout is perfect way for my implementation

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Great ! Since that fixed your issue, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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