Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28

Thread: Cant open Qt Designer

  1. #21
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cant open Qt Designer

    Install qt-MySQL and its dependencies.

  2. #22
    Join Date
    Sep 2006
    Posts
    102
    Thanks
    5
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Cant open Qt Designer

    i have installed two of the packages called
    qt-mysql
    qt-odbc

    now i am getting the drivers in project->database connection
    the two drivers i m getting are
    QMYSQL3
    QODBC

    now i m having the same old problem of starting mysql

    whenever i try to start it by typing mysql on the terminal it says
    cant connect to.....through /var/lib/mysql/mysql.sock

    the file there doesnt exists
    neither the mysqld service is running.
    even if i try to start the service by typing
    /etc/init.d/mysqld start
    on the terminal
    it gives following error :


    Initializing MySQL database : Neither host 'root' nor 'localhost' could be looked up with /usr/bin/resolveip'. Please configure the 'hostname' command to return a correct hostname. If yoiu want to solve this at a later stage restart this script with --force option

    please tell me how to solve this problem
    There are 10 kinds of people in this world. Those who understand binary, and those who dont.

    regards
    shamik

  3. #23
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cant open Qt Designer

    I think you should refer to some Fedora knowledge base on how to install mysqld properly. It's probable that you broke something as rpm scripts should have set up the database correctly during installation. As a temporary solution issue this command (as root):
    echo "localhost" > /etc/hostname
    and try to start the mysql daemon again.

  4. #24
    Join Date
    Sep 2006
    Posts
    102
    Thanks
    5
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Cant open Qt Designer

    the temporary solution doesnt work.
    i tried as told :
    echo "localhost" > /etc/hostname

    and then

    /etc/init.d/mysqld start

    but still the error is same :

    "

    Initializing MySQL database : Neither host 'localhost.localdomain' nor 'localhost' could be looked up with /usr/bin/resolveip'. Please configure the 'hostname' command to return a correct hostname. If yoiu want to solve this at a later stage restart this script with --force option

    "

    i havent installed mysql myself.
    it has been installed bydefault with FC-6 installation and i havent made any changes to it neither have i made any changes to environement variables or any system files.

    on some other pc where a similar fresh installation of FC-6 is done, mysql is running fine. it is only on my pc that it gives this error.

    is it possible to solve this problem or i have to uninstall all the rpms of mysql and re-install them? but then re-installing will raise the headache of Qt-MySql driver linking.

    so i think it will be better if we make a little more effort and try to solve this problem rather than uninstalling and re-installing.
    There are 10 kinds of people in this world. Those who understand binary, and those who dont.

    regards
    shamik

  5. #25
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cant open Qt Designer

    Is there a special reason why you are using Fedora?
    I have used SUSE for years now, and its very friendly as far as standard installations go.
    Yast (the package manager) offers you all you need as far as Qt goes.
    I am sure that with SUSE you would have been up and running from the start.
    You can install it in parallel and try.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  6. #26
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cant open Qt Designer

    Fedora should be OK for a beginner (although I didn't like it :P), it should have a package manager as well. But the problem here seems to be very weird... I never heard about a system that can't resolve localhost So let's take care of it:

    echo "127.0.0.1 localhost" >> /etc/hosts

  7. The following user says thank you to wysota for this useful post:

    shamik (24th April 2007)

  8. #27
    Join Date
    Sep 2006
    Posts
    102
    Thanks
    5
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Cant open Qt Designer

    thankyou soooooo much

    mysql is now running successfully.
    u r a real Guru

    There are 10 kinds of people in this world. Those who understand binary, and those who dont.

    regards
    shamik

  9. #28
    Join Date
    Apr 2007
    Posts
    23
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Cant open Qt Designer

    Quote Originally Posted by wysota View Post
    Fedora should be OK for a beginner (although I didn't like it :P), it should have a package manager as well. But the problem here seems to be very weird... I never heard about a system that can't resolve localhost So let's take care of it:

    echo "127.0.0.1 localhost" >> /etc/hosts
    I have never seen this NOT in the hosts file by default. I am suprised...

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 20:43
  2. Replies: 13
    Last Post: 15th December 2006, 12:52
  3. Is there designer for Qt4.2 open source
    By nimmyj in forum Newbie
    Replies: 1
    Last Post: 6th December 2006, 06:52
  4. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 14:18
  5. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 19th May 2006, 00:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.