Search:

Type: Posts; User: SledgeHammer_999; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. [SOLVED] Re: I can't understand what this javascript code does

    Thanks for the hint. First I thought that Element refered to a DOM Element but actually is mootools' Element class.
    Direct link to the set() method:...
  2. [SOLVED] I can't understand what this javascript code does

    Hi,

    I know C++ pretty well, but I am a total noob in javascript. I was reading a piece of code and trying to understand it. Hopefully the javascript syntax is pretty close to the C++ one so I...
  3. Re: HOW TO: Application Indicators and LibNotify in QT5

    I haven't worked with Unity. I assumed that Appindicators and systray are 2 separate things, ie you can have both at the same time. I guess I am wrong.

    Moreover from the link above the include is:...
  4. Re: HOW TO: Application Indicators and LibNotify in QT5

    Why use libnotify directly?

    For the notification area you can use QSystemTrayIcon which supports showing "messages" and other stuff. Also in qt5 there is QPlatformSystemTrayIcon, although I never...
  5. Replies
    3
    Views
    632

    [SOLVED] Re: Need a C++ guru

    Qt supports utf8. Just use QString::fromUtf8() (static method, can be used without a class instance). But it takes a signed const char*. I have no idea why sqlite returns unsigned here...
  6. Replies
    15
    Views
    18,347

    Re: how do I type Greek letters in Python?

    Go to your keyboard settings and add a new layout. Choose greek. Then choose a key combination that switches between the layouts or click on the relevant tray icon that appears.
  7. Re: problem using ld to link 64 bit executable

    @allynm

    It seems that ld tries to output a 32bit binary from the error message.
    Unfortunately I don't have more experience on this. Just my 2 cents.
  8. Replies
    4
    Views
    1,969

    Re: [c++] Event-driven programming

    Disclaimer: I haven't read your code snippets

    You can take a look at Boost.Signals and Boost.Signals2. The second one is a thread safe version of the first one. These are 2 of the few C++...
  9. Replies
    6
    Views
    1,349

    Re: [c++]zeromq v3

    Can you post the hwserver.cpp?
  10. Replies
    6
    Views
    515

    Re: Journey to C/C++

    IMHO the best free online C++ tutorial: http://www.cplusplus.com/doc/tutorial/
  11. qt, treeview performance problem when refreshing the model.

    Hi, I was debugging an open source project that had this issue: When the rows in the treeview grow above 200/300 the gui freezes for almost a second when updating and also raises the CPU usage quite...
  12. Re: C++ ofstream::open won't accept string as a filename

    As the error message says to you there isn't an open() method which accepts std::string. The open() method has this signature void open( const char *filename,
    ios_base::openmode mode =...
  13. Re: C++ List of alternating structures

    @akvino read it again. I already mentioned forward declaration.
  14. Re: C++ List of alternating structures

    I think another way of solving this is with "forward declaration" of the struct/class. Warning I didn't actually try to compile the following code:


    struct B; //forward declare the struct
    ...
  15. Replies
    11
    Views
    899

    Re: C++ noob question.

    No you have it wrong. You should read more about pointers, but more specifically about declaring functions that take arguments and how you declare(and read) the type of each argument. If you omit the...
  16. Replies
    11
    Views
    899

    Re: C++ noob question.

    For the first example the variable is passed by reference. So any changes to the var will be automatically reflected to the original object. In the second example you will need to dereference the...
  17. Re: Problems compiling "Hello World" (C++) in Ubuntu 12.10 using CodeBlocks

    Maybe CodeBlocks thinks that this is a C source file and tries to compile it with gcc. Somewhere in the project settings you should be able to switch it to C++.
  18. Replies
    20
    Views
    1,997

    Re: Why is C slower than Java?

    Well, I missed that since you hadn't used code tags... (hint php tags highlight syntax regardless of programming language used)
  19. Replies
    20
    Views
    1,997

    Re: Why is C slower than Java?

    Probably the printf slows down the output which makes the program to execute slower.

    Put your code inside [ code][ /code] tags or [ php][/ php] tags next time.
  20. Re: C++, dynamic_cast and language bindings

    So just subclassing the wrapper-base class but continuing to also wrap the C gtk functions is sufficient for dynamic_cast to work?
  21. C++, dynamic_cast and language bindings

    This is more of a theoretical question that popped into my mind than an actual problem I am currently facing.

    If I understand correctly, the use of dynamic_cast is this:
    1. Have class B, which is...
  22. Re: Reserving space for application in Gtk / Xlib

    I think you need to create a Gtk::Window with WINDOWS_POPUP as windowtype.
  23. Replies
    4
    Views
    481

    Re: Gio::Icon load image

    Actually I have an idea. Use dynamic_cast on ::icon and if it converts to fileicon or themedicon (or it is actually a gicon)
  24. Replies
    4
    Views
    481

    Re: Gio::Icon load image

    I provided the second link because the description of the first reference it. When using gtkmm you have to go back to the gtk docs because the gtkmm ones arent so complete.

    As for the other...
  25. Replies
    4
    Views
    481

    Re: Gio::Icon load image

    How about:

    1. http://developer.gnome.org/gtkmm/3.2/classGtk_1_1Image.html#a6420311c6012c9515ef3071387499f1f
    2. http://developer.gnome.org/gtk3/stable/GtkImage.html#gtk-image-new-from-gicon

    ?
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4