Results 1 to 7 of 7

Thread: How to run a program writen by SDL using Qt.

  1. #1
    Join Date
    May 2010
    Posts
    8
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default How to run a program writen by SDL using Qt.

    Hello. I want to write a program that can start two external program. My external program was written by SDL, so it cannot be show in my LCD screen because it confict with mother program. I think the solution is sleep my mother program and release the screen but I dont know to do. pls help me!!!
    My program run in an arm board using Qt embedded and SDL.
    Thank for any idea!!!

  2. #2
    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: How to run a program writen by SDL using Qt.

    I didn't quite understand the problem with displaying, but you don't need a visible gui to launch other processes from a Qt application.
    Just use QCoreApplication, and QProcess.
    ==========================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.

  3. #3
    Join Date
    May 2010
    Posts
    8
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to run a program writen by SDL using Qt.

    Thank you, but it doesn't work.

  4. #4
    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: How to run a program writen by SDL using Qt.

    *it* deosn't wrok, or maybe *you* are doing it wrong?
    ==========================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.

  5. #5
    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: How to run a program writen by SDL using Qt.

    Correct me if I'm wrong but doesn't SDL require a running X Server? Do you have X running on your device?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    May 2010
    Posts
    8
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to run a program writen by SDL using Qt.

    Sorry for my English.
    SDL can run without X window. You can find more information in SDL website.

  7. #7
    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: How to run a program writen by SDL using Qt.

    So what exactly is the problem?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 20th August 2010, 14:45
  2. Replies: 1
    Last Post: 30th April 2010, 14:25
  3. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 19:05
  4. Replies: 7
    Last Post: 19th January 2008, 16:29
  5. How do I make a program out of my program?
    By Randulf in forum Newbie
    Replies: 1
    Last Post: 29th May 2007, 12:11

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.