Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • What means "Don`t resolve symlinks" (QFileDialog::DontResolveSymlinks)?

    8
    0 Votes
    8 Posts
    6k Views
    W
    No problem. That's why these forums exists ;)
  • /dev/input/

    4
    0 Votes
    4 Posts
    3k Views
    A
    Try to access this file as root. On most linux systems, only root has access to /dev/input devices
  • Signal/slot and update gui

    2
    0 Votes
    2 Posts
    2k Views
    F
    I added a repaint() call at the end of the slot function. This seems to work. The screen gets updated faster now (i.e. after the first execution of the slot). Nevertheless, I have the feeling that this is probably not good practice... Are there other, better solutions ?
  • QTree model architecture

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • How to build communi?

    Locked
    4
    0 Votes
    4 Posts
    5k Views
    G
    Closed. This is a duplicate of "this thread":http://qt-project.org/forums/viewthread/17112/.
  • QTimer

    3
    0 Votes
    3 Posts
    3k Views
    B
    Thanks Serg :)
  • Segmentation fault in drawComplexControl() with Gtk style (Qt 4.8.1)

    3
    0 Votes
    3 Posts
    3k Views
    T
    Right. Thanks. I've now filed a bug report for this: https://bugreports.qt-project.org/browse/QTBUG-25760 I've looked at the Qt source code, too, and I think I know how the problem could be fixed. I'll add more details to the QtBug...
  • QAudioInput -- windows qt 4.7/4.8 - broken over 48000 hz

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Help needed : Want to contribute to Qt

    10
    0 Votes
    10 Posts
    4k Views
    C
    Have a look at the file qglobal.h in the Qt sources for Q_DECLARE_PRIVATE and Q_D macros then revisits the QLineEdit sources. A beginners guide to hacking Qt? Not that I am aware of. Hacking Qt library sources in anything but the most trivial way is not a beginner's domain. You start with Qt Assistant, the code, online resources, and good deal of inquisitiveness when faced with some thing you don't immediately follow. You will need to walk before you can run. Chances are that in the process of learning you will discover you don't need to modify the Qt sources anyway.
  • Populate treeview

    2
    0 Votes
    2 Posts
    1k Views
    S
    Hi Rajveer, It depends on what information you are storing in the file and what information you want to display/ load in the tree as parent/child . You need to provide more information so that we can get a clear picture about your requirements.
  • [resolved] UIC command line tool and the -tr parameter

    2
    0 Votes
    2 Posts
    2k Views
    R
    okay, just added @"QMAKE_UIC += -tr TRAN_UI"@ to my project file with a name where TRAN_UI is my macro to handle translation with my fixed context. Works nicely.
  • 0 Votes
    4 Posts
    9k Views
    D
    Hi I need a help. I am trying to integrate the opencv2.3 with qt in ubuntu 11.04 but I got one error. The following is the Application output: "Starting /home/krishanu/Hello-build-desktop/Hello... OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /home/krishanu/OpenCV-2.3.0/modules/core/src/array.cpp, line 2482 terminate called after throwing an instance of 'cv::Exception' what(): /home/krishanu/OpenCV-2.3.0/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat The program has unexpectedly finished. /home/krishanu/Hello-build-desktop/Hello exited with code 0" This is my source code: #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" int main() { cv::Mat imag; imag= cv::imread("fruits.jpg"); cv::namedWindow("MyImage"); cv::imshow("Myimage",imag); cvWaitKey(5000); return 1; } This is my.pro file #------------------------------------------------- Project created by QtCreator 2012-05-14T18:08:31 #------------------------------------------------- QT += core QT -= gui TARGET = Hello CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp INCLUDEPATH +=/usr/include/opencv LIBS+=-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann It would be of great help if someone would could help me.Thanks in advance.
  • Build Communi Error

    5
    0 Votes
    5 Posts
    2k Views
    sierdzioS
    You can get it if you follow this: "Building Qt5 from Git":http://qt-project.org/wiki/Building_Qt_5_from_Git
  • Regarding loading the form file at runtime

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Signals and slots: mutual connections - How to avoid feedback?

    5
    0 Votes
    5 Posts
    4k Views
    M
    A good design principal in writing a setter is to make sure that the new value is different than the old value before doing any kind of assignment and signaling... @ void SomeClass::someSetter(int value) { if (value != the_current_value) { the_current_value = value; emit theValueChanged(value); } } @ This will prevent those kind of infinite loops without having to block signals.
  • [SOLVED] Buffer overflow detected?

    4
    0 Votes
    4 Posts
    9k Views
    S
    Hi, You need to edit your first post and add [SOLVED] to the title :)
  • How to run QT application on X-window of the embedded platform

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    T
    I just closed this thread as leon suggested.
  • How to start Qt Designer?

    5
    0 Votes
    5 Posts
    9k Views
    S
    It's a pity, in my country English wasn't nationality language, I have limited things when approach new technology. Especially Listening skill ... but I will try :)
  • [SOLVED] Setting 2 colors in Mainwindows Statusbar

    8
    0 Votes
    8 Posts
    6k Views
    S
    You are welcome. :)
  • 0 Votes
    18 Posts
    22k Views
    C
    The only disadvantage of this solution is, that it does not really work during runtime. Setting the value during application start-up works, but changing it later has no effect. For me this is currently not a problem, but I thought I should still mention it.