nimqt icon indicating copy to clipboard operation
nimqt copied to clipboard

menu tips message

Open Martinix75 opened this issue 1 year ago • 1 comments

Good morning, It is always me who disturb. As I said in the other, these days, I am playing with the menus, but I think I have found a small problem:

....
menuHelp.makeMenu:
  - "&Aiuto":
    setToolTip(Q "help1")
    setStatusTip(Q "help2")
    setIcon(newQIcon(Q "Icons/help.png"))
    handleTriggered():
      finestra.static_QMessageBox_aboutQt()

As you can see from the piece of code above I have entered the "setToolTip" and "setStatusTip" commands, the compilation is carried out correctly, but the comments under the menu item does not appear! I am wrong I, but does not seem to look at the proc. Or do you do not work?

Thanks and sorry for the continuous disturbance from Martin A.

Martinix75 avatar Dec 21 '23 11:12 Martinix75

The solution can be found here: https://stackoverflow.com/questions/21725119/why-wont-qtooltips-appear-on-qactions-within-a-qmenu

You need to also set setToolTipsVisible to true: menuHelp.setToolTipsVisible(true).

Does that work for you then?

jerous86 avatar Dec 27 '23 13:12 jerous86