Coder Social home page Coder Social logo

Comments (11)

nandishnan4 avatar nandishnan4 commented on July 29, 2024

Not just when docked to Mainwindow, but in general, please find in the below pic
DockedInsideFloatingWindow
we would like to remove the title bar newdock3, but the newdock 4 remains.

Kind Regards
Nandish

from kddockwidgets.

iamsergio avatar iamsergio commented on July 29, 2024

I don't see why not, thanks for the suggestion.

In order for me to prioritize this, which company is this for ?
Or if open-source, the url please. If I like it I'll hack on this on my free time over the weekend.
If it's for a closed app for a company I'll need some due diligence and ask KDAB to schedule me time for it.

Alternatively, you can just wait for after the QtQuick port is done, in a few months.

from kddockwidgets.

nandishnan4 avatar nandishnan4 commented on July 29, 2024

Hi Sergio, thanks for quick response, we are using it here in MVTech Software Gmbh.
The profiles tlaemmlein, and pklaffert are my colleagues, you might have already seen the issues raised by my colleagues as well.

Kind Regards
Nandish

from kddockwidgets.

mola avatar mola commented on July 29, 2024

Hi, you can hide all titlebars.when you want to work with them, show them.

for (auto dock : m_dockwidgets)
    {
      auto f = dock->titleBar();

      if (f)
      {
        f->setVisible(!e);
     }
    }

from kddockwidgets.

iamsergio avatar iamsergio commented on July 29, 2024

So basically, like kddockwidgets_example -t ?

-t will hide the title bars and you drag by the tab bar instead

Except that you want the title bar for the floating window, so that's the only change needed here ?

from kddockwidgets.

nandishnan4 avatar nandishnan4 commented on July 29, 2024

Yes, something very similar, if the window is floating and has more than one tabs, we need to have the title bar. As soon as this floating widget is docked (either on another widget or mainwindow) we would want to hide the title bar.

from kddockwidgets.

nandishnan4 avatar nandishnan4 commented on July 29, 2024

Hi, you can hide all titlebars.when you want to work with them, show them.

for (auto dock : m_dockwidgets)
    {
      auto f = dock->titleBar();

      if (f)
      {
        f->setVisible(!e);
     }
    }

from kddockwidgets.

nandishnan4 avatar nandishnan4 commented on July 29, 2024

Thanks for the response mola, but in this method, we do hide all the title bar. We specifically need to hide the title bar only if the dock widget has more than one tab and it is docked.

from kddockwidgets.

nandishnan4 avatar nandishnan4 commented on July 29, 2024

Sorry Closed the issue by mistake.

Regards
Nandish

from kddockwidgets.

iamsergio avatar iamsergio commented on July 29, 2024

Try ./bin/kddockwidgets_example -qt

Which means:
Config::Flag_HideTitleBarWhenTabsVisible | Config::Flag_AlwaysTitleBarWhenFloating

from kddockwidgets.

nandishnan4 avatar nandishnan4 commented on July 29, 2024

Sure I shall look into it, thanks again for the efforts.

Kind Regards
Nandish

from kddockwidgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.