Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Custom widget with new layout?



  • How write own complex widget with many pushbuttons etc? I can't find example https://doc.qt.io/archives/3.3/designer-manual-7.html 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:
    breadcrumb


  • Lifetime Qt Champion

    Hi,

    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 ?

    :\libqxt>mingw32-make.exe
    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\qdoc3.pro ) && 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;
         ^~~~~~~~~~~~~~
         Q_STATIC_TYPE
    

    Simply:
    QT_STATIC_CONST -> static const
    QT_STATIC_CONST_IMPL -> const
    (I found https://github.com/marsyas/marsyas/issues/43)


Log in to reply