Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QTabWidget movable tabs behavior

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED].exe from "Release" directory don't work correctly

    3
    0 Votes
    3 Posts
    1k Views
    A
    Just copied the .dll libraries (all of them) from OpenCv to Release directory. Now i should find exactly what libraries are needed for the application to work.
  • [Solved] Placement and re-sizing of animated gif.

    3
    0 Votes
    3 Posts
    4k Views
    S
    I'll change this to "solved" even though I believe the solution I used is a work around. What I would like to know is why my original approach did not work. With that kind of knowledge I'm thinking I could figure my way out of future problems. This way (using a work around) it feels a lot like guessing until something works.
  • Monitor a Signal of an object not always present(?).

    3
    0 Votes
    3 Posts
    1k Views
    A
    Simply create the connection at the moment you instantiate the object.
  • [SOLVED]List of QWidgets * and knowing what is what

    6
    0 Votes
    6 Posts
    3k Views
    A
    Also, widgets have properties, and one of these properties is marked the user property. That property will contain the value you need. You can find out and query the property you need using QMetaObject.
  • [Solved] How can i make a Particular Column as Non Editable in QTableView

    7
    0 Votes
    7 Posts
    11k Views
    A
    There is also a ready-made "proxy model":http://qt-project.org/wiki/QSortFilterProxyModel_subclass_for_text_alignment_-and_readonly_columns available on the wiki for this.
  • Q_DECL_EXPORT and function name for Windows DLLs

    5
    0 Votes
    5 Posts
    10k Views
    D
    Mixing: extern "C" and __stdcall is wrong as __stdcall is the standard ABI conventions for C++. There is a __cdecl which would be correct for C but will be implied by the: extern "C" part and so it no needed.
  • File position using QSettings

    5
    0 Votes
    5 Posts
    2k Views
    A
    The QSetting constructor you are calling is using the file name as is, which means it looks for it in the current directory, which is more likely the directory you launched the application from, not necessarily the one where the application executable is. To get the latter you can use: @QSettings mySettings(QApplication::applicationDirPath() + "/myfile.ini", QSettings::IniFormat);@ You would have to prefix explicitly the file path with QDesktopServices::storageLocation(QDesktopServices::DataLocation) (+ "/") instead to look for the file in ~/.config/organizationName/applicationName
  • Object-based paint/update in Qt/PyQt4

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Z Fighting issue with transparent window ontop of an OpenGL Application

    1
    0 Votes
    1 Posts
    998 Views
    No one has replied
  • QThreads and signal/slot connections : some signals are lost

    6
    0 Votes
    6 Posts
    9k Views
    K
    I guess the difference is that if you first connect and then moveToThread the connectionType choosen by Qt (if you don't set it explicitly) will be DirectConnection which is incorrect after the moveToThread. This might mess up the connections. If you first moveToThread and then connect the correct QueuedConnection type is choosen by default.
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Failed to start program. Path or permissions wrong?

    3
    0 Votes
    3 Posts
    2k Views
    J
    Yes, they are both Qt 4.8.1 for Desktop - MSVC2010 (QtSDK) and they both use the Microsoft Visual C++ Compiler 10.0 (x86). I suppose I'll try that Dependency walker
  • [Solved]QTextEdit terminal

    5
    0 Votes
    5 Posts
    4k Views
    T
    bq. Please take a look at ReplWidget [github.com] Thank you so much! This is perfect for my purposes!
  • [Closed] QGraphicsView: reimplementing paintEvent stops events

    3
    0 Votes
    3 Posts
    3k Views
    P
    No, I have not. However, I have abandoned this so the thread is obsolete. It can be closed.
  • QApplication Algorithms (exec, notify , ….) ?

    4
    0 Votes
    4 Posts
    2k Views
    M
    I don't know if you would find it helpful or not, but there is an old Qt Quarterly article on events that has a pretty good in-depth discussion in general terms "here.":http://doc.qt.digia.com/qq/qq11-events.html
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Make QGraphicsTextItem show the cursor being moved

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Issue with QT_NO_DYNAMIC_CAST

    7
    0 Votes
    7 Posts
    2k Views
    G
    After some tests, make install does work in windows, but the -prefix option does not. So it installs in the source directory... However, I found the solution on another forum. configure.exe may be called from an empty directory using the full path to configure.exe. Then make, make install and make clean do a clean installation inside this previously empty directory. Works perfectly
  • [SOLVED]Can we Typecaste QString to QAction ?

    10
    0 Votes
    10 Posts
    3k Views
    M
    [quote author="Lukas Geyer" date="1349789428"]Does an apple become a banana just because you paint it yellow? Most probably not. The same way you can't cast a QString to a QAction. If you want to create a QAction with a given text you will have to construct a QAction object and set the text, by either passing it to the constructor or using setText().[/quote] Awesome Example.. :) Great..