November 16, 2010

kodr_rms kodr_rms
Lab Rat
1 posts

Extend table widget and tree Widget designed in Qt Designer and developed in VS

 

How to extend the table widget and tree Widget designed in Qt Designer but developed in Visual Studio. I want to open a particular table on every click event happening on the tree widget item. What file to write my code in? I am unable to co-relate them.

Guide me through this.__

[edit: fixed title / chetankjain]

4 replies

November 16, 2010

SteveKing SteveKing
Lab Rat
105 posts

Hi,

I think you might want to change the name of the post as the use of Visual Studio doesn’t affect the tree / table widgets you’re using.

After that I would suggest you look through the help on Model/View programming in Qt. It’s easy to find in QAssistant. This should show you how to link model data to different views etc.

Regards,
Steve

November 16, 2010

Volker Volker
Robot Herder
5428 posts

Have a look at the various clicked/selected/current signals of the tree view/tree widget and connect them to an appropriate slot in your logic that opens the table.

November 16, 2010

Volker Volker
Robot Herder
5428 posts

BTW – could someone of the forum mods or the original poster change the topic please, it has nothing to do with the question. TIA.

November 17, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts
Volker wrote:
BTW – could someone of the forum mods or the original poster change the topic please, it has nothing to do with the question. TIA.

done

 
  ‹‹ how to implement border-image effect, in QWidget .      Unable to run application with Custom Widget ››

You must log in to post a reply. Not a member yet? Register here!