[Bug 1135336] Re: Qt Creator misconfigures itself if Qt4 qmake is installed or if the whole ubuntu-sdk isn't installed before the first run

Timo Jyrinki timo.jyrinki at canonical.com
Fri Mar 1 15:48:27 UTC 2013


** Description changed:

  On a clean user like Guest, for some reason Qt Creator only detects Qt 4
  and not Qt 5, if both are installed. If qt4-qmake is removed, Qt 5 is
  automatically detected.
  
  If having this bug, multiple things in Qt Creator configuration may be
  broken. You can either try to fix the problems manually, or remove the
  qt4-qmake package and reset Qt Creator configuration.
  
  Qt Creator also misconfigures itself if not all of ubuntu-sdk has been
  installed before the first launch, and these same problems come up then.
  Either the Qt Creator configuration resetting or manual fixing is needed
  also in this case.
  
  Symptoms of having the problem include:
  - Not being able to "Run" QML projects
  - Getting QML Import complaints when going to the Design tab
  - Missing Ubuntu UI wizard options (this can also be cause by not having the special package ubuntu-qtcreator-plugins from ubuntu-sdk-ppa installed)
+ 
+ == Manually fixing Qt Creator settings ==
  
  With the manually fixing settings, as a first step one needs to go Tools
  -> Options -> Qt Versions -> Add... and add the /usr/bin/qmake which
  then identifies itself as Qt 5.0.1.
  
  If still having problems, one needs to check the Kits tab as well to
  double-check that the "Desktop (default)" has Qt version "Qt 5.0.1
  (System)" set. Not having it set can for example result in Build -> Run
  being greyed out when having qmlproject like lp:~dpm/+junk/ubuntu-app-
  dev-cookbook opened.
  
  If the Build -> Run is still greyed out after this when you've a
  CurrencyConverter.qmlproject open from above link, but Tools -> Options
  settings seem fine, open the "Projects" from the left pane in Qt
  Creator. Check that you have a kit defined (use the "Add Kit" dropdown
  if not), after which you should have the Desktop -> Run tab filled with
  "Run configuration: "QML Scene" for example. Now the Run should work.
  
  Also the QML Import Path might be broken if qt4-qmake package was
  installed during the time of first run of Qt Creator. This is shown in
  the Design tab from the left pane not functioning for Ubuntu UI
  projects. TODO: how to set the QML Import Path from the UI without
  resetting all configuration?
  
+ == Automatically fixing Qt Creator settings by resetting configuration
+ ==
+ 
  If you do want to reset all the Qt Creator configuration instead, quit
  Qt Creator and remove the files .config/Trolltech.conf .config/Qt*. If
- you don't have the qt4-qmake installed anymore, starting Qt Creator now
- should have everything functional.
+ you don't have the qt4-qmake installed anymore, and have ubuntu-sdk
+ installed, starting Qt Creator now should have everything functional.

** Description changed:

  On a clean user like Guest, for some reason Qt Creator only detects Qt 4
  and not Qt 5, if both are installed. If qt4-qmake is removed, Qt 5 is
  automatically detected.
  
  If having this bug, multiple things in Qt Creator configuration may be
  broken. You can either try to fix the problems manually, or remove the
  qt4-qmake package and reset Qt Creator configuration.
  
  Qt Creator also misconfigures itself if not all of ubuntu-sdk has been
  installed before the first launch, and these same problems come up then.
  Either the Qt Creator configuration resetting or manual fixing is needed
  also in this case.
  
  Symptoms of having the problem include:
  - Not being able to "Run" QML projects
  - Getting QML Import complaints when going to the Design tab
  - Missing Ubuntu UI wizard options (this can also be cause by not having the special package ubuntu-qtcreator-plugins from ubuntu-sdk-ppa installed)
  
  == Manually fixing Qt Creator settings ==
  
  With the manually fixing settings, as a first step one needs to go Tools
  -> Options -> Qt Versions -> Add... and add the /usr/bin/qmake which
- then identifies itself as Qt 5.0.1.
+ then identifies itself as Qt 5.0.1. Remove Qt 4 references.
  
  If still having problems, one needs to check the Kits tab as well to
  double-check that the "Desktop (default)" has Qt version "Qt 5.0.1
  (System)" set. Not having it set can for example result in Build -> Run
  being greyed out when having qmlproject like lp:~dpm/+junk/ubuntu-app-
  dev-cookbook opened.
  
  If the Build -> Run is still greyed out after this when you've a
  CurrencyConverter.qmlproject open from above link, but Tools -> Options
  settings seem fine, open the "Projects" from the left pane in Qt
  Creator. Check that you have a kit defined (use the "Add Kit" dropdown
  if not), after which you should have the Desktop -> Run tab filled with
  "Run configuration: "QML Scene" for example. Now the Run should work.
  
  Also the QML Import Path might be broken if qt4-qmake package was
  installed during the time of first run of Qt Creator. This is shown in
  the Design tab from the left pane not functioning for Ubuntu UI
  projects. TODO: how to set the QML Import Path from the UI without
  resetting all configuration?
  
  == Automatically fixing Qt Creator settings by resetting configuration
  ==
  
  If you do want to reset all the Qt Creator configuration instead, quit
  Qt Creator and remove the files .config/Trolltech.conf .config/Qt*. If
  you don't have the qt4-qmake installed anymore, and have ubuntu-sdk
  installed, starting Qt Creator now should have everything functional.

** Description changed:

  On a clean user like Guest, for some reason Qt Creator only detects Qt 4
  and not Qt 5, if both are installed. If qt4-qmake is removed, Qt 5 is
  automatically detected.
  
  If having this bug, multiple things in Qt Creator configuration may be
  broken. You can either try to fix the problems manually, or remove the
  qt4-qmake package and reset Qt Creator configuration.
  
  Qt Creator also misconfigures itself if not all of ubuntu-sdk has been
  installed before the first launch, and these same problems come up then.
  Either the Qt Creator configuration resetting or manual fixing is needed
  also in this case.
  
  Symptoms of having the problem include:
  - Not being able to "Run" QML projects
  - Getting QML Import complaints when going to the Design tab
  - Missing Ubuntu UI wizard options (this can also be cause by not having the special package ubuntu-qtcreator-plugins from ubuntu-sdk-ppa installed)
  
  == Manually fixing Qt Creator settings ==
  
  With the manually fixing settings, as a first step one needs to go Tools
  -> Options -> Qt Versions -> Add... and add the /usr/bin/qmake which
- then identifies itself as Qt 5.0.1. Remove Qt 4 references.
+ then identifies itself as Qt 5.0.0 or 5.0.1. Remove Qt 4 references.
  
  If still having problems, one needs to check the Kits tab as well to
  double-check that the "Desktop (default)" has Qt version "Qt 5.0.1
  (System)" set. Not having it set can for example result in Build -> Run
  being greyed out when having qmlproject like lp:~dpm/+junk/ubuntu-app-
  dev-cookbook opened.
  
  If the Build -> Run is still greyed out after this when you've a
  CurrencyConverter.qmlproject open from above link, but Tools -> Options
  settings seem fine, open the "Projects" from the left pane in Qt
  Creator. Check that you have a kit defined (use the "Add Kit" dropdown
  if not), after which you should have the Desktop -> Run tab filled with
  "Run configuration: "QML Scene" for example. Now the Run should work.
  
  Also the QML Import Path might be broken if qt4-qmake package was
  installed during the time of first run of Qt Creator. This is shown in
  the Design tab from the left pane not functioning for Ubuntu UI
  projects. TODO: how to set the QML Import Path from the UI without
  resetting all configuration?
  
  == Automatically fixing Qt Creator settings by resetting configuration
  ==
  
  If you do want to reset all the Qt Creator configuration instead, quit
  Qt Creator and remove the files .config/Trolltech.conf .config/Qt*. If
  you don't have the qt4-qmake installed anymore, and have ubuntu-sdk
  installed, starting Qt Creator now should have everything functional.

** Summary changed:

- Qt Creator misconfigures itself if Qt4 qmake is installed or if the whole ubuntu-sdk isn't installed before the first run
+ Qt Creator misconfigures itself if qt4-qmake is installed or if the whole ubuntu-sdk isn't installed before the first run

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qtcreator in Ubuntu.
https://bugs.launchpad.net/bugs/1135336

Title:
  Qt Creator misconfigures itself if qt4-qmake is installed or if the
  whole ubuntu-sdk isn't installed before the first run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1135336/+subscriptions




More information about the kubuntu-bugs mailing list