Qt creator - build tab is inactive , play button is inactive .How to activate them?
Hello, I want to develop a software using Python in Qt. I installed python, qt, qt creator ,sip, pyqt. When i open qt creator , build tab is inactive. I installed Qt 5.3. After this problem , i installed the Qt 5.4 also. However the same problem still exists. It founds path of compiler ,Qt versions,kits automatically.
Searching on the web, i found a solution,but it doesn't satisfied me.By using tools->external->configure->add->addcategory , i add my path of python. Now when i write some code,it can run with tools->external -> myCategory. However , build tab is inactive. bottom-left play button and other two buttons around it are inactive. I think something is missing. I want to run my code with clicking bottom-left play button, or i want to use develop tab. Why are they inactive? How can i activate them ?
Thanks in advance.
Hi and welcome to devnet,
Which version of Qt Creator are you using ? If under version 3.0.0, that's normal, you need to upgrade to at least that version for Qt >= 5.2
I download the online installer and installed qt 5.4 and 5.3 in this way in linux. My Qt Creator is :
Qt Creator 3.2.2 (opensource)
Based on Qt 5.3.2 (GCC 4.6.1, 32 bit)
then i installed sip .Then i installed pyqt as below:
python configure-ng.py -q /home/oiyio/Qt/5.4/gcc/bin/qmake
python configure.py -q /home/oiyio/Qt/5.4/gcc/bin/qmake
When i typed make ,after 1-2 minutes passed , it gives error , function f not found etc. then i typed make install. It gives the same error "... function f not found ..."
Then i change 5.4 with 5.3 as below:
python configure-ng.py -q /home/oiyio/Qt/5.3/gcc/bin/qmake
python configure.py -q /home/oiyio/Qt/5.3/gcc/bin/qmake
It gives no error.Everything compiles fine.
In application tab-> programming,Qt Creator (open source) appears. I open Qt Creator clicking this.
I open a new python file and write print("something") etc, but build tab is inactive, play button is inactive. I'm stacked at this point. Pleaseee help
OK.I understand the problem The problem is that i don't create a new project, instead i create just a python file. THus build tab play button appears inactive.
When i create a project, it looks active.OK.
When i open a project , and clicked run. It gives errors:
cannot find -lGL
collect2:error:ld returned 1 exit status
Why i take this error? HOw to do a sample project like hello world?
But what project can i start to write python in it? I will make design.
You can find several post on this forum for that GL error. You are missing the OpenGL development libraries.
Qt's default projects run with the minimal amount of code to get a window/widget