jerous86 / nimqt

Qt bindings for nim
GNU General Public License v2.0
93 stars 6 forks source link

menu tips message #38

Open Martinix75 opened 6 months ago

Martinix75 commented 6 months ago

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.

jerous86 commented 6 months ago

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?