ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, let's start with an easy question. Which of the two lines is the error message referring to? You should be able to tell from the rest of the error message. That information should be in the lines that you mistakenly thought were not important enough to share.
Dugan's suggestion was based on a clearly stated assumption about the information not supplied in your original question. Did you read and understand the QT QLineEdit documentation in the link he provided? Do you know the types of the arguments that you are passing to it?
Quote:
Originally Posted by Zero4
QLineEdit(QWidget parent=None): too many arguments
QLineEdit(QString, QWidget parent=None): argument 1 has unexpected type "window"
That is clearly telling you that the type of the first argument being passed is not of type QString.
But it is also not clear from your sparse information whether this message was produced before or after you reversed the order of the arguments which didn't work, and which are still of types unknown to anyone here...
So please restate your problem description and provide the complete picture, including the intended overload prototype, the type definitions of each of the arguments being passed, and the complete error messages that result.
Last edited by astrogeek; 11-26-2016 at 09:07 PM.
Reason: Remove sig
I have tried reversing them as you suggest, Didn't work!
Is this the info you require
QLineEdit(QWidget parent=None): too many arguments
QLineEdit(QString, QWidget parent=None): argument 1 has unexpected type "window
No, that's not enough. And with the way communications with you are going, nothing but the following will be:
You need to post a full program that demonstrates the problem you're having. If your program is long, reduce it to just something that both a) is runnable and b) demonstrates the problem. Then post both that, and the full output from running it. I need to be able to see the line numbers in the error output and match them to what I see in the source code.
You have been redacting a lot of information from your error output. Stop doing that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.