title: Pyside Qmenu Examples
body: <p>Does anyone know examples about how to change a qMenu styles of lines separately ( change color of text of line , color of line bg, add underline to any texts inside texts etc. ) or if can't be done , can be solved anyhow ?
  Thanks, 
  Szabolcs</p>
  
  <p>share my code:</p>
  
  <p>class MainWindow(QtGui.QMainWindow):
     def <strong>init</strong>(self):
        super(MainWindow, self).<strong>init</strong>()
        self.menus = ['alma','korte','banan','ezmegaz']</p>
  
  <pre><code>  acts = []
    self.qmenu = QtGui.QMenu()
    self.hip_fgrp = HipFileGroup( hip_data_file )
  
    self.hip_fgrp.RemoveRepeats()
  
    for i,hipf in enumerate(self.hip_fgrp.hipFileArr):
       short_n = hipf.shortname
       # prj = hipf.shortprjname
       prj = ''
  
       prj = hipf.shortprjname
  
       if len(hipf.add_hipfolders):
          prj = prj + ' \\ ' + hipf.add_hipfolders[0] 
  
       action = QtGui.QAction( prj+' \\ '+short_n, self, triggered=self.MenuSelected) 
       action.setData( i)
       acts.append( action)
       # print short_n
  
    mpos = QtGui.QCursor
    x = mpos.pos().x()
    y = mpos.pos().y()
  
    for action in acts:
       self.qmenu.addAction(action)
  
    self.qmenu.show()
    self.qmenu.setGeometry( x-20, y-20, 0, 0)
    self.qmenu.exec_()
  </code></pre>
  
  <p>def MenuSelected( self):
        action = self.sender()
        hipfile_id = action.data()
        hipfile = self.hip_fgrp.hipFileArr[ hipfile_id]
        hipfile.show_all()
        hipfile_last = hipfile.getLastVersion( hipfile.hipfullspec)
        print hipfile_last
        if not in_sublime:
           import hou
           hou.hipFile.load( hipfile_last, hip_accept)</p>