Creating QuickTabs programmatically not working
Well, after some thinking and searching, I managed to solve my own question. All I needed was this:  

$tabs = array(
   $tabs[] = array(
      'title'   =&gt; t('Tab one'),
      'type'    =&gt; 'node',
      'nid'     =&gt; '24',
      'weight'  =&gt; 0,
    ),
    $tabs[] = array(
      'title'   =&gt; t('Tab two'),
      'type'    =&gt; 'node',
      'nid'     =&gt; '23',
      'weight'  =&gt; 1,
    ),
);

// Configure the QuickTabs options
$quicktabs_options = array(
   'style'   =&gt; 'Bullets',
   'ajax'    =&gt; FALSE,
);

$quicktabs_name = 'dynamic_quicktabs_menu';
$quicktabs = quicktabs_build_quicktabs($quicktabs_name, $quicktabs_options, $tabs);
return $quicktabs;