June 23, 2011

nocnashada nocnashada
Lab Rat
6 posts

Problems with Qt Creator/Designer

 

I don’t know if this is the right forum, but here it goes:

I have a widget that has a line-edit, a label and a button. When a user clicks the button, the widget reads line-edit, starts a QProcess and gives what it read in as an argument. The process gives back output which is read in by the widget, formatted properly and displayed with the label. It works exactly right. Now I have to accomplish the same thing with Qt Designer.

How the hell do I do that?!? I’m stumped – all the designer tutorials I’ve found handle basic stuff like how to connect sliders and other pre-made widgets, but never stuff like this.

3 replies

June 23, 2011

loladiro loladiro
Lab Rat
596 posts

You’ll have to do it in C++. Have a look at QProcess [doc.qt.nokia.com]

June 23, 2011

nocnashada nocnashada
Lab Rat
6 posts

I have already done it in basic C++. Now i have to do this with designer.

Do I conclude correctly that designer wasn’t meant for stuff like this? Or at least not as far as basic widgets go. During my playing around with Qt in the last few days, I found my problem would be solved if I managed to make custom widget plugins for the designer, but that was met with varying amounts of unsuccess.

June 23, 2011

loladiro loladiro
Lab Rat
596 posts

Qt Designer can only handle basic signal/slot/property modification for the basic widgets (and your plugins). It is only used to create the design, not the business logic. That has to be done in C++.

 
  ‹‹ How to use the Nokia_AnalyzeTool?      [Split] Problems with Qt Creator/Designer plugins ››

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