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. Custom widget with new layout?
Forum Updated to NodeBB v4.3 + New Features

Custom widget with new layout?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 572 Views 1 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.
  • A Offline
    A Offline
    AndrzejB
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        AndrzejB
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You do realise that it's an external library ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AndrzejB
            wrote on last edited by AndrzejB
            #5

            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)

            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