Results 1 to 7 of 7

Thread: Some questions about Qt and App creation...

  1. #1

    Default Some questions about Qt and App creation...

    Hello everyone!

    I'm starting with Qt, so I'm pretty new in it. Mainly I'm PHP/C#/VB.NET developer and there are some differences.

    There are some things i can't understand. I've used search, readed a lot of threads here, but anyway, i don't get it.


    1. We trying to create some app, it should have it's own updater function. As you start the main app, it will connect to server and check if there are some updates. MainWindow is hidden on start.
    a. if there is no update, the MainWindow will appear.
    b. if new update was found, MainWindow will stay hidden, but there should appear new window with progress bar which will show progress status.
    Question: As what should i define this new Window in part B? As new QWidget and create Progress Bar in it or there is another way?

    2. I have read a lot of threads here, found a classes to customize the skin of own application. This thread is from year 2007, and somehow a little bit old. We want to customize our app as far as possible, like own frame skin for MainWindow, all sub-windows, controls and other. Is there some good Topics or Manuals describing how to do that?

    Sorry if i missed somewhat and it was already discussed here.
    Thanks!

  2. #2
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Some questions about Qt and App creation...

    Hello V i r u s (bad name by the way),

    For an app to update itself is always tricky. When an .exe is running, it can't just be replaced.

    I would suggest first starting an 'updater' executable instead of the real application. This would be a QDialog based application (not using a QMainWindow). In the main() of this application, you could check if an update is required, and if not, just don't show the dialog. At the end of this updater, you can execute your real application sing QProcess::execute() or so.

    For the skins, I have no experience with that.

    Do you use QtCreator ? If not, I would really advice you to do so. It really helps in getting you started with Qt.

    Best regards,
    Marc

  3. #3

    Default Re: Some questions about Qt and App creation...

    Yeah, some ppl are somehow scared when they see my nickname, but i have it over 6 years and don't wanna change it =))

    I know that it's tricky to replace and existing and used file, the main idea was to create a temporary file, start the replacing routine hidden and then to start the app normally. That should work well, i think =))

    Of cource i'm using the Qt Creator, there are some options i've found very helpfull, but anyway i can't get the main frame (see as Windows Frame) changed. Customisation of buttons isn't that hard, just with right click and then edit.

  4. #4

    Default Re: Some questions about Qt and App creation...

    So, may be someone know good manual or thread where all this parts are described well, how to customize skin of an app?

  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Some questions about Qt and App creation...

    Typically how programs update themselves is kinda how marcvanriet explained it - the main app runs, checks for updates, and if it finds one it runs the updater app and quits, the updater app then downloads, extracts, overwrites the exe and then runs that new exe and quits.

    As for skinning, have a look at the 'themes' or 'tux' example, depending on what you need to do.

  6. #6

    Default Re: Some questions about Qt and App creation...

    Quote Originally Posted by fatjuicymole View Post
    As for skinning, have a look at the 'themes' or 'tux' example, depending on what you need to do.
    QT Example or here in "search"? =)

  7. #7
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Some questions about Qt and App creation...

    Some examples of skinning:
    http://doc.qt.nokia.com/4.6/widgets-styles.html
    http://doc.qt.nokia.com/4.6/widgets-stylesheet.html

    I haven't tried the new Qt Quick, but I think (and I want to stress the "think" part) you can go even beyond simple skinning.

Similar Threads

  1. QFileInfo Creation
    By QbelcorT in forum Qt Programming
    Replies: 3
    Last Post: 17th June 2009, 09:01
  2. Msi Creation
    By navi1084 in forum Installation and Deployment
    Replies: 1
    Last Post: 30th December 2008, 13:18
  3. method creation
    By MarkoSan in forum Newbie
    Replies: 6
    Last Post: 30th May 2007, 08:47
  4. Excel XML Creation with Qt's Dom classes
    By jpujolf in forum Qt Programming
    Replies: 4
    Last Post: 21st May 2007, 12:23

Tags for this Thread

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.