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. DockWudget
Qt 6.11 is out! See what's new in the release blog

DockWudget

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 775 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    When i do doubleClick on the dock it becomes gray and the titleBar disapperars:
    in the picture:0_1553600936926_Cattura.PNG

    the rectangle gray is the dock after that I did doubleClick

    jsulmJ 1 Reply Last reply
    0
    • ? A Former User

      When i do doubleClick on the dock it becomes gray and the titleBar disapperars:
      in the picture:0_1553600936926_Cattura.PNG

      the rectangle gray is the dock after that I did doubleClick

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @vale88 You should at least post your code which is executed if you double click. Else how could anybody know why that happens?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      ? 1 Reply Last reply
      3
      • jsulmJ jsulm

        @vale88 You should at least post your code which is executed if you double click. Else how could anybody know why that happens?

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @jsulm

        #include "mainwindow.h"
        #include "ui_mainwindow.h"
        #include <QDockWidget>
        
        MainWindow::MainWindow(QWidget *parent) :
            QMainWindow(parent),
            ui(new Ui::MainWindow)
        {
            ui->setupUi(this);
            QDockWidget * dock = new QDockWidget;
            dock->setFloating(true);
            dock->show();
        }
        
        MainWindow::~MainWindow()
        {
            delete ui;
        }
        
        

        I wrote only this...I think it's a property of the dock

        1 Reply Last reply
        0
        • YunusY Offline
          YunusY Offline
          Yunus
          wrote on last edited by Yunus
          #4

          @vale88 hi. I think you need to first name ur title like this

              QDockWidget * dock = new QDockWidget(tr("YourTitle"), this);
          
          

          And I prefer to look into this example I think it will be very helpful for u. You can reach it using examples on Qt.

          https://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html

          ? 1 Reply Last reply
          2
          • YunusY Yunus

            @vale88 hi. I think you need to first name ur title like this

                QDockWidget * dock = new QDockWidget(tr("YourTitle"), this);
            
            

            And I prefer to look into this example I think it will be very helpful for u. You can reach it using examples on Qt.

            https://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @Yunus thanks, it works!

            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