Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • 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
  • QUndoCommand calls Redo on initialization?

    16
    0 Votes
    16 Posts
    7k Views
    C
    [quote author="Andre" date="1324284223"]Last, but not least, I think that all Qt widgets that currently have their own private undo/redo, should get a getter & setter for a [[doc:QUndoStack]] pointer, so that you can easily make their undo/redo actions part of an application-global undo/redo stack. [/quote] Amen to that.
  • [Solved] Always show the end of QTextBrowser

    4
    0 Votes
    4 Posts
    19k Views
    F
    Thanks a lot. It works! Ps. Just change terminalTextBrowser() to terminalTextBrowser. [quote author="Volker" date="1324217111"]Something like this should do the trick: @ QScrollBar *sb = ui->terminalTextBrowser()->verticalScrollBar(); sb->setValue(sb->maximum()); @ [Brain to terminal, not tested.][/quote]
  • QProgressDialog shows progress always in %

    3
    0 Votes
    3 Posts
    3k Views
    A
    I think (not tried) this is easy to solve with a simple hack like this: @ QProgressBar* progressBar = theProgressDialog->findChild<QProgressBar*>(); if (progressBar) { progressBar->setFormat("%v/%m"); //or whatever format your fancy } else { //something wend wrong. Perhaps QProgressDialog didn't use an internal QProgressBar after all? } @
  • QTabWidget and multi color title

    7
    0 Votes
    7 Posts
    3k Views
    A
    [quote author="Kiut" date="1324237629"]When i use it, it set one color to the text but i want to st multi color for the text like grey and black[/quote] There is no default functionality in Qt for that. You will need to subclass and render the text yourself (perhaps via QTextDocument?)
  • [SOLVED] QLineEdit and QPlainTextEdit Right to left mode not working

    4
    0 Votes
    4 Posts
    5k Views
    S
    We have since tested it and as Chris H has suggested it depends on the direction of the characters. It seems to go through the string that is set and when it finds the first char that is strictly right to left or left to right it sets the direction based on that.
  • How to automatically detect the codec text file?

    16
    0 Votes
    16 Posts
    14k Views
    A
    So back to square 1: There is no such thing as plain text. :-)
  • Start next text block below an image in a QTextDocument

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