GUI help
-
At first, excuse my English. I would like to make a GUI for the beginning. It should look like this
I needed to advise on how best to do it in qt creator. The question is: How to do for each button in the panel, next window.
I should create Multiple QMainWindow or otherwise. I want the panel to be in every link.
I hope you can advise me. Thanks
-
Hi,
Do you mean something like a QTabWidget ?
-
Hi, no. I think the GUI file for the game. both panels should have all the necessary links in it to open another window (on image 'window'). I need to link to a window from the panel.but I do not know how to split the window for each link.
-
So a bit like Qt Creator then ?
-
yes in Qt Creator. Qt Widget Application
-
I meant, like the GUI of Qt Creator, with the bar on the left with all the buttons and the central widget that changes depending on what you clicked on the bar ?
-
Yes, now I'm looking at it. And something like that
-
Finally, I do not know if it will look like this in the GUI final. But it's about learning how to have a central widget in more variants. If it works.
-
@caca0o
Hi
You should also have a look at
http://doc.qt.io/qt-5/qstackedwidget.htmlIt makes it easy to have a design where on part of the window can be turned
back and forth like pages in a book.
Each "page" is a normal widget and can contain other widgets.
So in effect it would be like many central widgets.
-
StackedWidget is a good idea. But I was wondering how to make more central widgets. I still thought how to make a panel. Do you have any instructions?
-
QStackedWidget is used as a "container widget" where you put all the other widgets you are going to use.
-
I would still have one question
it does not work with debug. how can I fix it?
-
@caca0o
hi
Seems you have chosen Qt for visual studio.
Did you also install the compiler from microsoft site ?
(or had it already installed)
Unlike the mingw version, the compiler is not included with Qt
and must be installed separately by user.If yes, did you also install the debug tools?
for getting a debugger.
http://doc.qt.io/qtcreator/creator-debugger-engines.html
-
hi ... do you mean this link?
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
-
@caca0o
Hi
Nope, the actual compiler
https://www.visualstudio.com/downloads/
If you dont want the whole IDE, you can use
http://landinghub.visualstudio.com/visual-cpp-build-toolsIf you dont need to use visual studio , you might consider removing the VS qt
and install the mingw Qt instead. It comes with compiler and debugger and is ready to go.
Tool is located in
"C:\Qt\MaintenanceTool.exe"
-
now I install. I hope that it's correct. Build Tools for Visual Studio 2017
if not. you can inform me of the wrong procedure
-
@caca0o
Hi
Hopefully. it looks right but im not sure due to the language.
-
it did not help. when I click to run. do I have anything to set up?
or sketch something else on the offer. if you had an offer in English .. I would prove it
-
@caca0o
What about just going with mingw then ?
It has all included and works out of the box.
-
with qt-opensource-windows-x86-mingw530-5.8.0.exe
I really do not think it could be?
-
@caca0o
Can you please try a default gui project so we know the setup works ?
File -> New Project -> New Widget Application
-
to start a new project
-
Ok. so there really is something up with the kits.
But this is VS 2015
I though you would use only mingw ?did you UNINSTALL visual studio Qt to avoid it playing tricks on you ?
-
now I do not understand what to do?
-
Did you install the mingw too?
If you create new project , it does NOT offer to make project with that compiler ?
You still seems to be using visual studio. ( and it seems kit still broken)
-
I uninstall all
I wondered if it would be possible if you had given me a link to download and install
-
Hi, just use the online installer and ONLY
select the mingw version as i shown in the picture.
-
this is it? qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe
-
or qt-opensource-windows-x86-5.10.1.exe ??
this file is in the picture?
-
Hi
I meant the online version from
https://www.qt.io/download
(open source side)
(you will get a file named qt-unified-windows-x86-3.0.4-online.exe)
Then check the the mingw as shown.
-
is that OK? or do I have only a mingw 5.3.0 32bit?
-
@caca0o
No no, that is WAYYY to much.
Just check the MinGW 5.3 one. Nothing else.
You can always add say Qt Chart or other optional modules should you need it.
Do not install UWP or MSVC.
-
very much thank you. it works
-
@caca0o
Super.
Happy programming.
Remember to mark as solved.
-
hi, I would like to have one more question. when I want to have one panel in the mainwindow. where do i give pushbuttons.
to be bordered, what is the best choice? I want to make a little foundation for gui as soon as possible
-
@caca0o
I think you can take a look at QToolBar.and also read Application Example to learn how to use it.
-
so this example. is it going to be done in the toolbox?
or do I need to find another command?
-
@caca0o You can simply use a QVBoxLayout.
You can even find an example showing exactly what you want to do: http://doc.qt.io/qt-5/qvboxlayout.html
-
maybe I'll find a solution. when I get back. and I do not want QStackedWidget or QTabWidget.
how do I make more of the same windows so the push button always opens a window on the same place?
I need to do several Widgets with similar content.I can not find a solution
-
@caca0o Did you check the link I posted?
You can create your own widget containing what ever you need and create several instances of it. Or do I misunderstand your question? Your description isn't clear.