Adding Quick Tabs Programmatically to a node is not working I'm writing below code in my node--type.tpl.php, but only empty page is loading when i load the node page.Can you please help in knowing my mistake.
What i need to add to display quicktab and its corresponding viewmode content?
my code is:

&lt;?php
 $nid=$node-&gt;nid;

$tabs['Home'] = array(
  'title' =&gt; t('Home'),
  'type' =&gt; 'node',
  'nid' =&gt; $nid,
  'viewmode_home' =&gt; TRUE,
  'hide_title' =&gt; FALSE,
);
$tabs['About'] = array(
  'title' =&gt; t('About'),
  'type' =&gt; 'node',
  'nid' =&gt; $nid,
  'viewmode_about' =&gt; TRUE,
  'hide_title' =&gt; FALSE,
);


$quicktabs['qtid'] = 111; //given a random number
$quicktabs['tabs'] = $tabs;
$quicktabs['style'] = 'Mac';
$quicktabs['ajax'] = FALSE;
print theme('quicktabs', $quicktabs);
?&gt;
I got this to work using node--typename.tpl.php



$tabs = array(
      array(
        'title' =&gt; t('Overview'),
        'type' =&gt; 'view',
        'vid' =&gt; 'product_tabs',
        'display' =&gt; 'block_1',
        'args' =&gt; $node-&gt;nid,
        'weight' =&gt; 0,
      ),
      array(
        'title' =&gt; t('Dimensions &amp; Weight'),
        'type' =&gt; 'view',
        'vid' =&gt; 'product_tabs',
        'display' =&gt; 'block_4',
        'args' =&gt; $node-&gt;nid,
        'weight' =&gt; 1,
      ),
      array(
        'title' =&gt; t('Shipping'),
        'type' =&gt; 'view',
        'vid' =&gt; 'ps3_games',
        'display' =&gt; 'default',
        'args' =&gt; $node-&gt;nid,
        'weight' =&gt; 2,
      ),
      array(
        'title' =&gt; t('Ratings &amp; Reviews (' . $node-&gt;comment_count . ')' ),
        'type' =&gt; 'view',
        'vid' =&gt; 'product_tabs',
        'display' =&gt; 'block_3',
        'args' =&gt; $node-&gt;nid,
        'weight' =&gt; 3,
      ),
    );
    $qtoptions = array(
      'style' =&gt; 'Zen',
      'ajax' =&gt; FALSE,
    );
    $qtname = 'commerce_product23';
    $quicktabs = quicktabs_build_quicktabs($qtname,$qtoptions,$tabs);
    print drupal_render($quicktabs['content']);


works with views, but if I try to use nodes it does not. 

You should try another method.

Create a Quicktab using the Quicktabs UI. Then create a custom module to override the settings/output of the quicktab using the machine name to target a specific quicktab 

For Example:

 function mymodule_quicktabs_alter($quicktabs) { 
    $nid = $node-&gt;nid
        if ($quicktabs-&gt;machine_name == 'quick_tab_front_page') { 
        $quicktabs-&gt;tabs = array(
          0 =&gt; array(
        'nid' =&gt; $nid,
        'view_mode' =&gt; 'full',
        'hide_title' =&gt; 1,
        'title' =&gt; 'Full',
        'weight' =&gt; '-99',
        'type' =&gt; 'node',
          ),
          1 =&gt; array(
        'nid' =&gt; $nid,
        'view_mode' =&gt; 'teaser',
        'hide_title' =&gt; 1,
        'title' =&gt; 'Teaser',
        'weight' =&gt; '-99',
        'type' =&gt; 'node',
          ),
        );
        $quicktabs-&gt;renderer = 'quicktabs';
        $quicktabs-&gt;style = 'Arrows';
        $quicktabs-&gt;options = array();
        }
        }