Results 1 to 3 of 3

Thread: qt designer and maya 2011

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qt designer and maya 2011

    I found a good tutorial for what I wanted to do.
    http://www.creativecrash.com/maya/tu...he-qt-designer

    so I was able to update the list inside maya by using a mel proc.
    the important thing is that the listView widget name has to be the same as the widget you call whn using textScrollList
    here's my procs

    Qt Code:
    1. proc listStuff()
    2. {
    3. string $list[]=`ls `;
    4. textScrollList -e -ra listWidget;
    5. for($item in $list)
    6. {
    7. textScrollList -e -a $item listWidget;
    8. }
    9. }
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. proc printThis()
    2. {
    3. print "This\n";
    4. }
    To copy to clipboard, switch view to plain text mode 

    They're in mel, not qt..

    now i've linked these 2 procs to my 2 buttons of my ui.
    They work fine using the -command dynamic attributes.

    I tried using the -command on the listView widget but nothing happened.

    I know with Pyqt you can link signal to slot or python def. Is that possible with the qt designer? I'd like to be able to run a mel proc or python def whn I select an item from the listview? actually i'd like to know all event I could run a mel command or python command.

    I included the ui file in case its needed.

    more later...

    P.S. I'm just testing how qt and mel/pyMel works together at the moment, so my solution are not very elegant at the moment. The link I post is very well done and has lots of explanation.
    Attached Files Attached Files

Similar Threads

  1. Replies: 1
    Last Post: 8th September 2010, 19:31
  2. Linker errors for developing Maya plugin with Qt 4.6
    By dythim in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2010, 20:38
  3. compiling maya (3d application ) with qt
    By knishaq in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2009, 06:28
  4. Maya Style Right Click Menus in Qt
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2007, 11:55
  5. Replies: 1
    Last Post: 22nd January 2007, 12:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.