Results 1 to 8 of 8

Thread: opening exe files, comercial version vs opensource

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: few general question

    • Use meaningful thread titles. "few general question" tells nothing about actual thread context.
    • Do not ask multiple unrelated questions in same thread.
    • Search Qt docs & examples and the forums first, then ask.


    Quote Originally Posted by Gily View Post
    Another question:
    I want to do sub menu. I mean I have menu in the top of the application with the right slot who calls the function
    like in save ->save function
    Signals and Slots

    now I want the function to open a dialog that the user can choose color.
    I read I need to use ColorListEditor . still not sure if I need to create a widget? if I understand correctly no need to delete it later?
    also not sure what s the result of that class. do I need to use the visual editor for that?
    hope I am clear
    I'm afraid you're not very clear. Of course you need to create a widget if you want to show an additional window. A modal dialog may be allocated on the stack, any other widget may not.

    Quote Originally Posted by Gily View Post
    It there a reson why sometimes the app include in different ways??
    why the different ways are needed and when should I use them?
    Forward declaration
    J-P Nurmi

  2. #2
    Join Date
    Dec 2007
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Forward_declaration

    thanks for your answer
    what I wanted to know , if there is common use/agreement for QT users when to use Forward_declaration an when to include?
    is there a way /convention?

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Forward_declaration

    Quote Originally Posted by Gily View Post
    what I wanted to know , if there is common use/agreement for QT users when to use Forward_declaration an when to include?
    is there a way /convention?
    It is a good practice to use forward declarations whenever possible. It will make compilation faster. A forward declaration is enough when the corresponding type is only used as a reference or as a pointer, in other words, when the compiler doesn't need to know actual size of the type. I'm sure this is all explained in more detailed in the given wiki article.
    J-P Nurmi

Similar Threads

  1. QGraphicsView general questions
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 15th October 2007, 23:22
  2. Replies: 1
    Last Post: 15th March 2007, 20:45
  3. Question regarding how to paint after zoom.
    By JonathanForQT4 in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2007, 15:34
  4. QThread exit()/quit() question
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2006, 14:38

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.