Add tooltip to windowTitle
-
Hello, I have a use case I assumed would be fairly common. I am setting the windowTitle on my QMainWindow and using the windowModified mechanism. I would like to add a tooltip with the full file path when hovering over the window title. I would almost think this should be standard if both windowTitle and windowFilePath are both set. However, I can't figure out how to do this. I can't get the QLabel for the windowTitle, the windowIcon returns a QIcon which doesn't support a tooltip, I also can't figure out how to get the title bar widget. Is there something I am missing?
I can add a statusToolTip to the QMainWindow but this is not what I want.
-
Hello, I have a use case I assumed would be fairly common. I am setting the windowTitle on my QMainWindow and using the windowModified mechanism. I would like to add a tooltip with the full file path when hovering over the window title. I would almost think this should be standard if both windowTitle and windowFilePath are both set. However, I can't figure out how to do this. I can't get the QLabel for the windowTitle, the windowIcon returns a QIcon which doesn't support a tooltip, I also can't figure out how to get the title bar widget. Is there something I am missing?
I can add a statusToolTip to the QMainWindow but this is not what I want.
-
Hello, I have a use case I assumed would be fairly common. I am setting the windowTitle on my QMainWindow and using the windowModified mechanism. I would like to add a tooltip with the full file path when hovering over the window title. I would almost think this should be standard if both windowTitle and windowFilePath are both set. However, I can't figure out how to do this. I can't get the QLabel for the windowTitle, the windowIcon returns a QIcon which doesn't support a tooltip, I also can't figure out how to get the title bar widget. Is there something I am missing?
I can add a statusToolTip to the QMainWindow but this is not what I want.