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. Can I create a frame with qt?
Forum Updated to NodeBB v4.3 + New Features

Can I create a frame with qt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
35 Posts 4 Posters 5.5k Views 3 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.
  • V Offline
    V Offline
    vale88
    wrote on last edited by
    #1

    Is there an object in qt that I can use to create a frame in the page like this?Cattura.PNG

    thanks

    V 1 Reply Last reply
    0
    • V vale88

      Is there an object in qt that I can use to create a frame in the page like this?Cattura.PNG

      thanks

      V Offline
      V Offline
      vale88
      wrote on last edited by
      #2

      @vale88 I wanted a horizontal frame and vertical

      Pl45m4P 1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        You mean the whole ribbon menu or some part of it?

        In case you want the ribbon - there is no such thing in Qt, but there are external solutions which provide it. See QTitanRibbon.

        (Z(:^

        V 3 Replies Last reply
        3
        • V vale88

          @vale88 I wanted a horizontal frame and vertical

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @vale88

          Which part do you mean?

          MS Paint uses tabs, toolbars and menus.

          There is QFrame in Qt but I dont know, if this is, what you need


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0
          • sierdzioS sierdzio

            You mean the whole ribbon menu or some part of it?

            In case you want the ribbon - there is no such thing in Qt, but there are external solutions which provide it. See QTitanRibbon.

            V Offline
            V Offline
            vale88
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • sierdzioS sierdzio

              You mean the whole ribbon menu or some part of it?

              In case you want the ribbon - there is no such thing in Qt, but there are external solutions which provide it. See QTitanRibbon.

              V Offline
              V Offline
              vale88
              wrote on last edited by
              #6

              @sierdzio is there an example? Anyway Can I create it with elements of qt? like groupBox?

              1 Reply Last reply
              0
              • sierdzioS sierdzio

                You mean the whole ribbon menu or some part of it?

                In case you want the ribbon - there is no such thing in Qt, but there are external solutions which provide it. See QTitanRibbon.

                V Offline
                V Offline
                vale88
                wrote on last edited by vale88
                #7

                @sierdzio I saw QTitanRibbon, I installed it, I saw it's a class, but I don't know how can I use it..is there a tutorial

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

                  Hi
                  QTitanRibbon is cool but also a bit expensive.
                  samples here. (scroll down a bit)
                  https://www.devmachines.com/documentation/QtitanComponents/html/examples.html#ribbon_examples

                  For home made simple version, see
                  https://github.com/martijnkoopman/Qt-Ribbon-Widget

                  V 2 Replies Last reply
                  7
                  • mrjjM mrjj

                    Hi
                    QTitanRibbon is cool but also a bit expensive.
                    samples here. (scroll down a bit)
                    https://www.devmachines.com/documentation/QtitanComponents/html/examples.html#ribbon_examples

                    For home made simple version, see
                    https://github.com/martijnkoopman/Qt-Ribbon-Widget

                    V Offline
                    V Offline
                    vale88
                    wrote on last edited by
                    #9

                    @mrjj I like the last example, THANKS

                    1 Reply Last reply
                    0
                    • mrjjM mrjj

                      Hi
                      QTitanRibbon is cool but also a bit expensive.
                      samples here. (scroll down a bit)
                      https://www.devmachines.com/documentation/QtitanComponents/html/examples.html#ribbon_examples

                      For home made simple version, see
                      https://github.com/martijnkoopman/Qt-Ribbon-Widget

                      V Offline
                      V Offline
                      vale88
                      wrote on last edited by vale88
                      #10

                      @mrjj a question...I want a frame on the left..but I don't understand how I must add it:
                      I did:
                      Cattura.PNG

                      and then:

                      MainWindow::MainWindow(QWidget *parent)
                        : QMainWindow(parent)
                        , ui(new Ui::MainWindow)
                      {
                        ui->setupUi(this);
                      
                        // Hide ribbon dock title bar
                        ui->ribbonDockWidget->setTitleBarWidget(new QWidget());
                      
                      
                        ui->dockWidget->setTitleBarWidget(new QWidget());
                      
                      
                        ui->frame_left->addTab(QIcon(":/icons/briefcase_1.svg"), "Project");
                        ui->frame_left->addTab(QIcon(":/icons/monitor_1.svg"), "View");
                        ui->frame_left->addTab(QIcon(":/icons/engineering_1.svg"), "Tools");
                        ui->frame_left->addTab(QIcon(":/icons/information_1.svg"), "Help");
                      
                      
                      
                      

                      but when I run there isn't my dock

                      V 1 Reply Last reply
                      0
                      • V vale88

                        @mrjj a question...I want a frame on the left..but I don't understand how I must add it:
                        I did:
                        Cattura.PNG

                        and then:

                        MainWindow::MainWindow(QWidget *parent)
                          : QMainWindow(parent)
                          , ui(new Ui::MainWindow)
                        {
                          ui->setupUi(this);
                        
                          // Hide ribbon dock title bar
                          ui->ribbonDockWidget->setTitleBarWidget(new QWidget());
                        
                        
                          ui->dockWidget->setTitleBarWidget(new QWidget());
                        
                        
                          ui->frame_left->addTab(QIcon(":/icons/briefcase_1.svg"), "Project");
                          ui->frame_left->addTab(QIcon(":/icons/monitor_1.svg"), "View");
                          ui->frame_left->addTab(QIcon(":/icons/engineering_1.svg"), "Tools");
                          ui->frame_left->addTab(QIcon(":/icons/information_1.svg"), "Help");
                        
                        
                        
                        

                        but when I run there isn't my dock

                        V Offline
                        V Offline
                        vale88
                        wrote on last edited by vale88
                        #11

                        @vale88 I adjusted:
                        I wrote:

                        QToolButton *open1ProjectButton = new QToolButton;
                          connect(openProjectButton,&QToolButton::clicked,this,&MainWindow::label);
                        
                          open1ProjectButton->setText(tr("Open"));
                          open1ProjectButton->setToolTip(tr("Open existing project"));
                          open1ProjectButton->setIcon(QIcon(":/icons/live_folder_2.svg"));
                          open1ProjectButton->setEnabled(true);
                          ui->frame_left->addButton("Project", "Project", open1ProjectButton);
                        
                        

                        but I get:
                        Cattura.PNG

                        I must put object on vertical

                        1 Reply Last reply
                        0
                        • mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Hi
                          I dont think sample supports vertical alignment.
                          The paint code does not seems to support it.

                          V 1 Reply Last reply
                          1
                          • mrjjM mrjj

                            Hi
                            I dont think sample supports vertical alignment.
                            The paint code does not seems to support it.

                            V Offline
                            V Offline
                            vale88
                            wrote on last edited by
                            #13

                            @mrjj thanks, only a question, if I wanto to change color, there is a gray, I want to put pink, where must I change?

                            mrjjM 1 Reply Last reply
                            0
                            • V vale88

                              @mrjj thanks, only a question, if I wanto to change color, there is a gray, I want to put pink, where must I change?

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              @vale88
                              Hi
                              Well RibbonGroupGroup first.
                              Use stylesheet.
                              alt text

                              I didnt check what rest of the grey is. i assume its the TabWidget.

                              V 1 Reply Last reply
                              3
                              • mrjjM mrjj

                                @vale88
                                Hi
                                Well RibbonGroupGroup first.
                                Use stylesheet.
                                alt text

                                I didnt check what rest of the grey is. i assume its the TabWidget.

                                V Offline
                                V Offline
                                vale88
                                wrote on last edited by
                                #15

                                @mrjj Can I see how did you write?

                                mrjjM 1 Reply Last reply
                                0
                                • V vale88

                                  @mrjj Can I see how did you write?

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by mrjj
                                  #16

                                  @vale88
                                  Hi
                                  I just open the Ui file and right click on top widget and then
                                  change style sheet and then click background color

                                  alt text

                                  V 1 Reply Last reply
                                  2
                                  • mrjjM mrjj

                                    @vale88
                                    Hi
                                    I just open the Ui file and right click on top widget and then
                                    change style sheet and then click background color

                                    alt text

                                    V Offline
                                    V Offline
                                    vale88
                                    wrote on last edited by
                                    #17

                                    ok thanks

                                    mrjjM 1 Reply Last reply
                                    0
                                    • V vale88

                                      ok thanks

                                      mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #18

                                      @vale88
                                      Also the same for
                                      alt text

                                      RibbonTabContent

                                      V 1 Reply Last reply
                                      1
                                      • mrjjM mrjj

                                        @vale88
                                        Also the same for
                                        alt text

                                        RibbonTabContent

                                        V Offline
                                        V Offline
                                        vale88
                                        wrote on last edited by
                                        #19

                                        @mrjj a question, when I click on a button of horizontal ribbon there is an effect, like I push a true button...how can I recreate this effect?

                                        mrjjM 1 Reply Last reply
                                        0
                                        • V vale88

                                          @mrjj a question, when I click on a button of horizontal ribbon there is an effect, like I push a true button...how can I recreate this effect?

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #20

                                          @vale88
                                          You mean on the tabs?
                                          or on the buttons Open , New etc ?

                                          V 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