<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Showing content of a file in the tabs]]></title><description><![CDATA[<p dir="auto">Hallo,</p>
<p dir="auto">I have program that has two parts.<br />
Main part is a mainwindow in which 3 Qtabs existed. Second part is a QFileDialog that will be showed if I want to create new File and has a create Button. Now I would like to show the content of new created file in my Tabs, as soon as I clicked on the create button. I also used treemodel.cpp/.h and treeitem.cpp/.h classes, from the qt exampples.</p>
<p dir="auto">I would be happy if someone could help me.</p>
]]></description><link>https://forum.qt.io/topic/16460/showing-content-of-a-file-in-the-tabs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 22:19:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/16460.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 May 2012 12:02:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Showing content of a file in the tabs on Wed, 09 May 2012 10:11:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I used tree to show my data in tree view in my tabs, which existed in main window. I think I may need a parser to pares my data, which are on the newly created file, also using setupModelData method in treeModel.cpp, and add it to my tree model.</p>
<p dir="auto">I am still worḱing on it.</p>
]]></description><link>https://forum.qt.io/post/138422</link><guid isPermaLink="true">https://forum.qt.io/post/138422</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 09 May 2012 10:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to Showing content of a file in the tabs on Fri, 04 May 2012 12:08:15 GMT]]></title><description><![CDATA[<p dir="auto">I don't really get what you want to do...</p>
<p dir="auto">If you created a file I suppose you have a "QFile":<a href="http://qt-project.org/doc/qt-4.8/qfile.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qfile.html</a> or any other reference to access it? If you do, you can access the file content with a "QDataStream":<a href="http://qt-project.org/doc/qt-4.8/qdatastream.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qdatastream.html</a> or "QTextStream":<a href="http://qt-project.org/doc/qt-4.8/qtextstream.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qtextstream.html</a> and display it? What do you want to do with a tree view?</p>
<p dir="auto">Please provide some more description about what you want to do and the layout of your code. Maybe you could provide some snippets too?</p>
]]></description><link>https://forum.qt.io/post/138074</link><guid isPermaLink="true">https://forum.qt.io/post/138074</guid><dc:creator><![CDATA[lycis]]></dc:creator><pubDate>Fri, 04 May 2012 12:08:15 GMT</pubDate></item></channel></rss>