Results 1 to 5 of 5

Thread: apply graphic GUI to a console program?

  1. #1
    Join Date
    Apr 2011
    Location
    Alingsås. Sweden.
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default apply graphic GUI to a console program?

    Hi.

    I've got a problem.

    I just downloaded dbzhang800-qextserialport library for serial port, and tried one of the example projects (event.pro) wich works fine. This is a console-program.

    Can I change this project to become a GUI project so I can use the graphic editor? I want to start developing from this example code, and make a nice GUI for my serial interface.

    Or is it better to start a new GUI project and add files from the example to that new project?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: apply graphic GUI to a console program?

    Well, do as you like. Both ways are fine.

  3. #3
    Join Date
    Apr 2011
    Location
    Alingsås. Sweden.
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: apply graphic GUI to a console program?

    Well, the problem is that I don't know how to do it, either way.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: apply graphic GUI to a console program?

    ? Ehm, change
    Qt Code:
    1. CONFIG += console
    To copy to clipboard, switch view to plain text mode 
    to
    Qt Code:
    1. CONFIG += qt
    To copy to clipboard, switch view to plain text mode 
    and do normal Qt/C++ programming. Or what is your problem more specific?

  5. #5
    Join Date
    Apr 2011
    Location
    Alingsås. Sweden.
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: apply graphic GUI to a console program?

    EEhh , OK.

    I understand that I am trying to proceed too fast here, I get stuck too often to develop anything useful. I'm a total beginner, so I will start over again totally. I have now bought a beginners book about Qt programming, and I will follow all the examples there. After that I suppose I'll understand more an don't need to ask too many dumb questions...

    (The book is in Swedish and the title is "Grunderna i Fönsterbaserad prorammering i C++ med Qt Creator" by Fredrik Vallbo.

Similar Threads

  1. Run program from console
    By tczaude in forum Qt Programming
    Replies: 2
    Last Post: 6th November 2011, 11:04
  2. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 18:05
  3. how to print a matrix to a console in GUI program
    By elflord in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2009, 12:16
  4. Console Program Problem
    By ball in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2006, 09:05

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.