Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • [SOLVED] QHostinfo: no such file or directory

    2
    0 Votes
    2 Posts
    5k Views
    K
    solved. I have to add another qmake location to the options in qt designer
  • ComboBoxDelegate openPersistentEditor placement

    13
    0 Votes
    13 Posts
    13k Views
    D
    Ah, peppe, I see. I guess you don't even have to subclass the view - it works something like this: http://programmingexamples.net/wiki/Qt/ModelView/ListViewComboBox
  • 0 Votes
    2 Posts
    2k Views
    J
    use regsvr32 to register the dll on the command line/batch file also check if you have the Qt dlls in the same directory as the com-dll so the com server can be executed
  • Running a non-blocking pyside GUI in Python interpreter

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Problems with QTextBrowser

    9
    0 Votes
    9 Posts
    4k Views
    A
    Thanks a lot! Both problems have been solved :)
  • QLocale::system()

    2
    0 Votes
    2 Posts
    2k Views
    T
    No, C is a valid locale. Basically it is "use no translation at all". Check the environment you are running your application in for the LC_* and LANG variables. Maybe something is forcing them to C. We do that in Qt Creator sometimes when we need to make sure to get parse-able output from the applications we run (e.g. the compiler).
  • QGraphicsScene drag and drop

    11
    0 Votes
    11 Posts
    13k Views
    T
    I had the same problem. Olorin's code worked for me. Thanks for the follow up.
  • GraphicsView: Merging of update regions and optimization implications

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    4 Posts
    2k Views
    A
    [quote author="pratik041" date="1324378815"]So what should we use in place of QPalette for the same purpose.[/quote] [quote author="pratik041" date="1324375284"]I am able to change its color through stylesheet (...)[/quote] Seems to me you already answered your own question.
  • [SOLVED]Checked and disabled

    8
    0 Votes
    8 Posts
    3k Views
    T
    Solution in a simple way @QStandardItem *itm = model->itemFromIndex(model->index(index.row(),j)); itm->setEnabled(false);@
  • QGLWidget inside a QScrollArea

    4
    0 Votes
    4 Posts
    3k Views
    D
    My guess would it be because it paints on screen.
  • Upgrade from Qt4.3 to Qt4.7

    4
    0 Votes
    4 Posts
    3k Views
    D
    Thank you folks.
  • What may be the cause of following error?

    6
    0 Votes
    6 Posts
    3k Views
    C
    Right: the difference isn't the lack of assertions (both methods have them) -- the difference is the copy functionality. From the documentation: "at() can be faster than operator, because it never causes a deep copy to occur."
  • Problem with Google Maps in QT widget

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Handle keypress with object instead of QListView

    9
    0 Votes
    9 Posts
    5k Views
    D
    An event filter is surely fine for your purpose. Just remember to install it on the view's viewport()...
  • How to apply Oracle query Hint?

    3
    0 Votes
    3 Posts
    2k Views
    S
    well.. I don't see OCIStmtPrepare function in QT. (I'm using ODBC3) Anyway, ther executedQuery() returned exactly same query what I input. And.. the retun value is the first thing of default asceding index. This is how I tell the hint does not work as I intened.
  • [SOLVED] Error while building project ...

    18
    0 Votes
    18 Posts
    13k Views
    ?
    I do not have any problem, you actually have to adapt to changes and found them, that is great satisfaction in the program. I had difficulties at first with MAC LION, with XCode and QT longer figured out how to solve this. I put a post about that problem of architecture, in fact it is a bug in QT too. If you want to sync your MAC LION, with Xcode 4.2 and its QT can help you in some respects, however, this is working perfectly on my computer.
  • QFileDialog::getOpenFileName - Odd modal behavior on Mac

    2
    0 Votes
    2 Posts
    2k Views
    G
    For me the method works. Which OS X version are you on and which Qt version do you use? And can you provide a simple, small, stripped down but complete sample that demonstrates the behavior?
  • Signal / Slot feature implemented in 2 classes

    7
    0 Votes
    7 Posts
    4k Views
    C
    [quote author="veverita" date="1324315988"] i must implement my own signal , so your example will not be good for me[/quote] Why not? There is nothing in there that requires the signal be <code>clicked()</code>, I was just using it as an example. It's easy to define your own signal, e.g. @ class MyClass : public QObject { ... public signal: void MyClassDidStuff (QString data); } @ and @void MyClass::EmitSignal () { emit MyClassDidStuff ("Hello, World!"); } @ Then, @ connect (instanceOfMyClass, SIGNAL (MyClassDidStuff(QString)), myOtherWidget, SLOT (HandleStuff(QString)));@
  • Using a stylesheet to customize a QSlider

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