Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Translation on the fly.

    2
    0 Votes
    2 Posts
    1k Views
    L
    "Dynamic Translation":http://doc.qt.digia.com/4.7/internationalization.html#dynamic-translation
  • [Solved] Qsvgrenderer problems to load a SVG on resource...

    4
    0 Votes
    4 Posts
    3k Views
    D
    In webview I need to use "qrc:///..." on svg renderer ":/...". Now it's working. Thanks anyway.
  • [Solved]sqlite+qt

    4
    0 Votes
    4 Posts
    2k Views
    M
    I'm compete my question. I use command synchronous=0 and speed up. read man in this www.sqlite.org/pragma.html
  • How to make Qprocess run a command line as Root

    6
    0 Votes
    6 Posts
    13k Views
    A
    It was already discussed on this forum. With details and at least 2 possible solutions with source code for testing. Please use search functions of this forum before you create new topic. Maybe you problem is already solved. Topic I'm talking about: "[SOLVED]Is it possible to pass on password to process requiring root privileges":http://qt-project.org/forums/viewthread/20673/
  • Odd behaviour of my dialog.

    1
    0 Votes
    1 Posts
    735 Views
    No one has replied
  • MoveToThread and QTimer

    movetothread qthread
    12
    0 Votes
    12 Posts
    17k Views
    T
    Ok great, thanks a lot for your answers, that's now completely clear :-).
  • [SOLVED]Remote 3G client connecting to server

    7
    0 Votes
    7 Posts
    2k Views
    A
    Please add "[SOLVED]" prefix left to the topic subject. Thanks!
  • [Solved] Use of focusWidget()

    5
    0 Votes
    5 Posts
    3k Views
    McLionM
    Thanks a lot. Final solution which works perfect: @AsButton *focused_widget; focused_widget = qobject_cast<AsButton *>(QApplication::focusWidget()); focused_widget->animateClick(ANIMATE_CLICK_TIME);@
  • How to deal with keyboard or "Qt and OSG"

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED] resizing a QMdiSubWindow

    3
    0 Votes
    3 Posts
    3k Views
    C
    If you are removing/destroying and replacing widgets in a layout to switch between a couple of options you should consider QStackedWidget.
  • Seperating GUI from Logic?

    3
    0 Votes
    3 Posts
    2k Views
    R
    For some applications, I develop a desktop (using Qt), web (using Wt) and console version (for example http://richelbilderbeek.nl/ToolSimMysteryMachine.htm has both a desktop and webversion). My personal trick is, how plain simple it may sound, is to let the GUI do only the GUI stuff (like reading edit boxes) and feed this to a GUI-less member dialog. For example, a QtSomeDialog and WtSomeDialog both contain the same SomeDialog. The Qt dialog reads an edit box (as a QString) and passes it to SomeDialog as a std::string. The Wt dialog reads an edit box (as a Wt::WString) and passes it to SomeDialog as a std::string. Personally, I enjoy doing this as my architecture has -IMHO- improved. I wrote one tiny article about the subject: http://richelbilderbeek.nl/CppFromDesktopToWebApplication.htm Cheers, Bilderbikkel
  • Qt, mpeg

    5
    0 Votes
    5 Posts
    2k Views
    mrdebugM
    [quote author="JKSH" date="1350344807"]You can try libVLC.[/quote] Wow! I didn't knew that this library exists. [quote author="JKSH" date="1350344807"]Are the memory leaks from FFMPEG, or from your program? How did you check?[/quote] It's a very good question! Using valgrind I haven't found memory leaks. The application is active 24h and creates a new mpg file every 2 minutes. In this contest I see that the required memory goes to increment. The problem is that I haven't find an official way to implement libav libraries. Now I have the doubt that my ffmpeg implementation is not correct or ffmpeg (libav) is not perfect.
  • QTcpSocket in a console app

    7
    0 Votes
    7 Posts
    10k Views
    V
    It will be more clear for beginners when they understand the basics of socket programming , plz follow the link .. http://csharp.net-informations.com/communications/csharp-socket-programming.htm it will provide the basics. vayne.
  • Class vtkCocoa... is implemented in both ...

    4
    0 Votes
    4 Posts
    2k Views
    B
    Probably you should post vtk related topics at the vtk mailingslist.
  • Qt Creator and changing pixelSizes in rich text

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [Solved] QPushButtons with both text & icons

    5
    0 Votes
    5 Posts
    6k Views
    0
    Could you not use some CSS to manage the styling of the buttons? I have done something similar with Qtoolbuttons
  • Not able to build with Qt Creator on Mac OSX 10.8.1

    3
    0 Votes
    3 Posts
    5k Views
    0
    I am having the same problem and I am using macx-g++, I have tried macx-llvm with the same problem. I can get my code to compile when I omit x86 from the following line in the .pro file and build for 64 bit only. @CONFIG += x86 x86_64@ I have just upgraded to mountain lion, latest xcode and bump Qt libraries to 4.8.3. This was all working fine on Mountain Lion with latest xcode and 4.8.0. I upgraded as there are specific mountain lion fixes in 4.8.3. Might be worth noting I'm building outside of Qt creator just to simplify things a little.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • LDD on My Deployed Application

    4
    0 Votes
    4 Posts
    2k Views
    D
    Thanks o use chrpath comand line and fix the problem. Now my debian package is building without errors.
  • One widget has different view in Linux, Mac OS X, Windows

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied