Results 1 to 2 of 2

Thread: Few (hopefully) simple questions

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Few (hopefully) simple questions

    Hey everyone, I just got my start on QT and I'm having a blast so far. This is definitely a fantastic library and I'm glad I came across it. With that said, I am having a few troubles that I haven't been able to find an answer for through searching. I have a few more questions than below but I will try to keep this brief and continue searching for my other questions. This is quite a large library and it's a lot to take in so I'm sure I'll get answers to most of my questions after enough searching through the documentation.

    1.) The QT IDE is great for the most part but I just can't deal with the lack of functionality in comparison to Visual Studio, not to mention how used to MSVC2010 I have become over the years. Are there any other ways to generate a moc file than to use the QT IDE?
    2.) Having quite a few troubles with the splash screen. First of all, transparent images (PNG) have a white rectangular border around them. Do I need to set any flags to make it transparent like it should be? Also, I want the splash screen to appear for a few seconds and then the main window. There is a simple way of accomplishing this using the below code. However, that seems a very sloppy way and I want the user to be able to click and close the splash screen if he chooses and the main window will still come up. I don't want to disable mouse events all together, and with the below code if the user clicks on the splash screen then he will still have to wait the remainder of the timer until the main window comes up.
    Qt Code:
    1. QTimer::singleShot( 2500, &SplashScreen, SLOT( close( ) ) ); // Close splash screen after 2500 seconds
    2. QTimer::singleShot( 2500, &MainWindow, SLOT( show() ) ); // Open main window after 2500 seconds
    To copy to clipboard, switch view to plain text mode 
    3.) I would like the splash screen to fade in, activate for a few seconds, then fade out (assuming there is no user interaction). Now is something like that possible or do I have to just deal with the image instantly appearing and then instantly disappearing?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Few (hopefully) simple questions

    1. Just install Qt Visual Studio Addin and be happy with Qt and Visual together.

  3. The following user says thank you to Lesiok for this useful post:

    QTGuy72 (10th July 2012)

Similar Threads

  1. Replies: 2
    Last Post: 17th March 2011, 13:30
  2. Simple questions
    By assismvla in forum Newbie
    Replies: 3
    Last Post: 2nd May 2010, 01:57
  3. Two probably simple Qt4 Questions
    By frenk_castle in forum Newbie
    Replies: 3
    Last Post: 16th September 2009, 15:37
  4. Simple DB app, some questions.
    By juannm in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2008, 11:46
  5. simple questions. qt3 to qt4
    By impeteperry in forum Newbie
    Replies: 16
    Last Post: 3rd April 2006, 17:41

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.