Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: SBDomains on August 21, 2018, 06:59:03 AM



Title: QT wallet / How to create an extra tab?
Post by: SBDomains on August 21, 2018, 06:59:03 AM
Hello. I'm trying to learn QT wallet editing. I am trying to build an additional tab next "Hyperinks" (tab will show links to websites) to "Overview" page.

Since I'm absolutely new with QT, all I did was that I have copied overviewpage.cpp & overviewpage.h and renamed them to hyperlinks.cpp & hyperlinks.h. After that I have searched for all of the files containing "overview" in their contents and copy -> pasted the codes of "overview" tab by replacing the word "overview" with "hyperlinks" and also created a new form called "hyperlinkspage.ui" (tried hyperlinks.ui too). As I understand this simply should add a new tab next to "Overview" tab in the QT wallet, but it gives me the following error:

Makefile:1441: recipe for target 'build/bitcoingui.o' failed
make: *** [build/bitcoingui.o] Error 1

Why this may be hapenning and how do I fix this?

PS. I'm aware that just copy pasting overviewpage.cpp & overviewpage.h is just the same code as in those files, but I'm thinking to change those things later. Now I just want to see how to create a new tab at all.

All help would be appreciated!


Title: Re: QT wallet / How to create an extra tab?
Post by: bob123 on August 21, 2018, 08:12:43 AM
Try to compile it yourself using gcc and post the output here using code-tags (place it it between [code ] and [/code ] omitting the spaces).
You most probably broke something trying to just copy/paste the code.

We need to see the whole output being generated when you're trying to compile the code.