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. [SOLVED] Simple Qt Breadcrumb on Widget Application
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Simple Qt Breadcrumb on Widget Application

Scheduled Pinned Locked Moved General and Desktop
qt5.5breadcrumbwidget
3 Posts 2 Posters 3.2k Views 2 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.
  • M Offline
    M Offline
    maximo
    wrote on 30 Sept 2015, 20:08 last edited by maximo
    #1

    Is there a way to implement a very simplistic Qt Breadcrumb? See, I don't want it to do anything except receive hyperlink click events and then my code will figure out what to do in the in the UI (such as switch the StackedWidget page). I want it to show blue underlined text for parts of it.

    For instance:

    Dashboard > Primary Scan > Scan Result

    ...assume the items that are bold (above) are not bold, but blue hyperlinks and blue text. When one clicks it, I can intercept, know what they clicked, and do something in the GUI.

    And using a web component increases the download size of the application. So, I'd like to avoid that if I can.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Sept 2015, 20:14 last edited by
      #2

      Hi,

      QLabel can handle enough html to handle that and you can use QLabel::linkActivated

      Hope it helps

      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
      • M Offline
        M Offline
        maximo
        wrote on 30 Sept 2015, 20:25 last edited by
        #3

        Perfect. I rightclicked a label and didn't realize I could do a richtext mode. I created hyperlinks and mapped them to things like %DASHBOARD% and %PRIMARY_SCAN% and %SCAN_RESULT%. I then added a slot for linkActivated and sent this to debug to print which link they clicked, and it works. I can handle this event then.

        1 Reply Last reply
        1

        1/3

        30 Sept 2015, 20:08

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved