Results 1 to 9 of 9

Thread: show a pop up or message box in my console application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: show a pop up or message box in my console application

    It's odd situation of using console based app with ui. Why do you need such behavior?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  2. #2
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: show a pop up or message box in my console application

    Why do you keep calling "console application" an application that displays message boxes and forms designed in QtDesigner? It is a GUI application, and you must instantiate QApplication. This does not prevent you from reading from the standard input and writing to the standard output like console applications do.

    All you have to do is instantiate the widgets, show them when you feel like it, and make sure an event loop runs for the user to interact with them. You can use std::cin and std::cout as much as you want.

Similar Threads

  1. Why does console show up =.=
    By xleniz in forum Qt Programming
    Replies: 3
    Last Post: 7th June 2012, 14:39
  2. How to show Multiple Message using QSystemTrayIcon?
    By ashukla in forum Qt Programming
    Replies: 5
    Last Post: 22nd May 2009, 10:26
  3. Replies: 4
    Last Post: 12th October 2008, 13:47
  4. StatusBar show message
    By Pang in forum Qt Programming
    Replies: 3
    Last Post: 23rd August 2007, 10:22
  5. console message
    By mickey in forum Qt Programming
    Replies: 6
    Last Post: 29th July 2006, 14:14

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
  •  
Qt is a trademark of The Qt Company.