Important: Please read the Qt Code of Conduct -

Custom widget with new layout?

  • How write own complex widget with many pushbuttons etc? I can't find example in new Qt.
    With this widget I must:

    • add and remove pushbuttons
    • if all buttons have smaller size than my container, leave space
    • else if buttons have bigger size, some buttons are invisible

    I must implement new layout?
    My goal: I want write breadcrumb like this:

  • Lifetime Qt Champion


    You should take a look at libqtxt QxtCrumbView. It implements a breadcrumb widget.

  • #include <QxtCrumbView> - can't find file
    I must something add to to .pro? I have QT += core gui widgets

  • Lifetime Qt Champion

    You do realise that it's an external library ?

  • Aaah.. at first, I thought, that is is a part of Qt, but now I see that is external library
    Last commit is 2014-10-07 , it will cooperate with Qt5.12.0 ?

    cd tools\3rdparty\qdoc3\ && ( if not exist Makefile d:\Qt\Qt5.12.0\5.12.0\mingw73_64\bin\qmake.exe -o Makefile D:\libqxt\tools\3rdparty\qdoc3\ ) && mingw32-make.exe -f Makefile
    mingw32-make.exe[1]: Entering directory 'd:/libqxt/tools/3rdparty/qdoc3'
    mingw32-make.exe -f Makefile.Release
    mingw32-make.exe[2]: Entering directory 'd:/libqxt/tools/3rdparty/qdoc3'
    compiling apigenerator.cpp
    In file included from doc.h:52:0,
                     from node.h:55,
                     from generator.h:55,
                     from apigenerator.h:47,
                     from apigenerator.cpp:44:
    location.h:94:5: error: 'QT_STATIC_CONST' does not name a type; did you mean 'Q_STATIC_TYPE'?
         QT_STATIC_CONST Location null;

    QT_STATIC_CONST -> static const
    (I found

Log in to reply